diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-06-25 07:25:31 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-06-25 07:25:31 +0100 |
| commit | 8a2ece78b724564fc972c349b6fe4f9dcf0b15d5 (patch) | |
| tree | 85cd0043c728fefd4a27657d3dda370aa03a2633 /src/input_handler.hh | |
| parent | 718adc9c885339cc7c6501b51a79800f21cab492 (diff) | |
Remember count when repeating last insert
Fixes #1465
Diffstat (limited to 'src/input_handler.hh')
| -rw-r--r-- | src/input_handler.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh index 17c655d9..4287f172 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -116,8 +116,8 @@ private: void push_mode(InputMode* new_mode); void pop_mode(InputMode* current_mode); - struct Insertion{ InsertMode mode; Vector<Key> keys; bool disable_hooks; }; - Insertion m_last_insert = { InsertMode::Insert, {}, false }; + struct Insertion{ InsertMode mode; Vector<Key> keys; bool disable_hooks; int count; }; + Insertion m_last_insert = { InsertMode::Insert, {}, false, 1 }; char m_recording_reg = 0; String m_recorded_keys; |
