From 1c8ee78d1a0abff5df3f771215786ede4613ccb9 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 18 Dec 2014 23:12:58 +0000 Subject: Do not register timers for transient input handlers --- src/input_handler.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/input_handler.hh') diff --git a/src/input_handler.hh b/src/input_handler.hh index 858ad360..f65d4978 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -38,7 +38,9 @@ enum class KeymapMode : int; class InputHandler : public SafeCountable { public: - InputHandler(SelectionList selections, String name = ""); + InputHandler(SelectionList selections, + Context::Flags flags = Context::Flags::None, + String name = ""); ~InputHandler(); // switch to insert mode @@ -80,6 +82,7 @@ public: DisplayLine mode_line() const; void clear_mode_trash(); + private: Context m_context; -- cgit v1.2.3