From 0b57103c7233dca418d322391f8147127ccc8361 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 26 Nov 2015 23:02:59 +0000 Subject: Remind user hooks disable when replaying last insert Fixes #495 --- src/input_handler.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input_handler.hh') diff --git a/src/input_handler.hh b/src/input_handler.hh index 036633dc..c67c8399 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -94,8 +94,8 @@ private: void push_mode(InputMode* new_mode); std::unique_ptr pop_mode(InputMode* current_mode); - struct Insertion{ InsertMode mode; Vector keys; }; - Insertion m_last_insert = {InsertMode::Insert, {}}; + struct Insertion{ InsertMode mode; Vector keys; bool disable_hooks; }; + Insertion m_last_insert = { InsertMode::Insert, {}, false }; char m_recording_reg = 0; String m_recorded_keys; -- cgit v1.2.3