From 3f733569ede4bc28365ca6515efbd7cdf2e52082 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 12 Nov 2014 20:31:12 +0000 Subject: [PATCH] Fix case where a context ends up locked in no-hooks mode --- src/input_handler.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 {