From 515231e824f730fb58db41526196a56f0adb57ed Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 12 Dec 2015 23:51:51 +0000 Subject: Fix input mode keep alive handling, use a refcount for input modes Fixes #528 --- 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 c67c8399..e29114ab 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -87,12 +87,12 @@ private: Context m_context; friend class InputMode; - Vector> m_mode_stack; + Vector> m_mode_stack; InputMode& current_mode() const { return *m_mode_stack.back(); } void push_mode(InputMode* new_mode); - std::unique_ptr pop_mode(InputMode* current_mode); + void pop_mode(InputMode* current_mode); struct Insertion{ InsertMode mode; Vector keys; bool disable_hooks; }; Insertion m_last_insert = { InsertMode::Insert, {}, false }; -- cgit v1.2.3