diff options
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 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<std::unique_ptr<InputMode>> m_mode_stack; + Vector<RefPtr<InputMode>> m_mode_stack; InputMode& current_mode() const { return *m_mode_stack.back(); } void push_mode(InputMode* new_mode); - std::unique_ptr<InputMode> pop_mode(InputMode* current_mode); + void pop_mode(InputMode* current_mode); struct Insertion{ InsertMode mode; Vector<Key> keys; bool disable_hooks; }; Insertion m_last_insert = { InsertMode::Insert, {}, false }; |
