diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-02-18 14:07:30 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-02-18 14:07:30 +0100 |
| commit | fc2dd599a3ff14fa207a1cb002b0974125eff16f (patch) | |
| tree | 1359b1ac705d6b595db05329a40c0f5626f73c98 /src/input_handler.hh | |
| parent | 0e081a76c13cd4d9f937b73d49cc7fb6c940ce38 (diff) | |
Move last insert state from context to input handler
Diffstat (limited to 'src/input_handler.hh')
| -rw-r--r-- | src/input_handler.hh | 3 |
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 {}; |
