summaryrefslogtreecommitdiff
path: root/src/input_handler.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-08-08 22:46:11 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-08-08 22:46:11 +0100
commit9d50dd388689dcc6772670f4195e461262d60414 (patch)
tree8e3bcf73a7958fb54d1430763237e3df24d78cff /src/input_handler.hh
parent7a59a6d758b71f3f100f92ed42fc8c0a18f3b63d (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.hh2
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;