summaryrefslogtreecommitdiff
path: root/src/input_handler.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-02-18 14:07:30 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-02-18 14:07:30 +0100
commitfc2dd599a3ff14fa207a1cb002b0974125eff16f (patch)
tree1359b1ac705d6b595db05329a40c0f5626f73c98 /src/input_handler.hh
parent0e081a76c13cd4d9f937b73d49cc7fb6c940ce38 (diff)
Move last insert state from context to input handler
Diffstat (limited to 'src/input_handler.hh')
-rw-r--r--src/input_handler.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh
index 6b260dcb..9089273d 100644
--- a/src/input_handler.hh
+++ b/src/input_handler.hh
@@ -71,6 +71,9 @@ private:
friend class InputMode;
std::unique_ptr<InputMode> m_mode;
std::vector<std::unique_ptr<InputMode>> m_mode_trash;
+
+ using Insertion = std::pair<InsertMode, std::vector<Key>>;
+ Insertion m_last_insert = {InsertMode::Insert, {}};
};
struct prompt_aborted {};