diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-08-08 22:46:11 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-08-08 22:46:11 +0100 |
| commit | 9d50dd388689dcc6772670f4195e461262d60414 (patch) | |
| tree | 8e3bcf73a7958fb54d1430763237e3df24d78cff /src/input_handler.hh | |
| parent | 7a59a6d758b71f3f100f92ed42fc8c0a18f3b63d (diff) | |
Use a struct rather than a std::pair for InputHandler::Insertion
Diffstat (limited to 'src/input_handler.hh')
| -rw-r--r-- | src/input_handler.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh index 19242ea8..a39f634f 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -93,7 +93,7 @@ private: void push_mode(InputMode* new_mode); std::unique_ptr<InputMode> pop_mode(InputMode* current_mode); - using Insertion = std::pair<InsertMode, Vector<Key>>; + struct Insertion{ InsertMode mode; Vector<Key> keys; }; Insertion m_last_insert = {InsertMode::Insert, {}}; char m_recording_reg = 0; |
