diff --git a/src/input_handler.cc b/src/input_handler.cc index b51eaac4..16f482d6 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -103,8 +103,11 @@ public: m_count /= 10; else if (key == '\\') { - m_hooks_disabled = true; - context().disable_user_hooks(); + if (not m_hooks_disabled) + { + m_hooks_disabled = true; + context().disable_user_hooks(); + } } else {