diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-11-12 20:31:12 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-11-12 20:31:12 +0000 |
| commit | 3f733569ede4bc28365ca6515efbd7cdf2e52082 (patch) | |
| tree | e15a200b491e450dc1bd067f9c41e5c0eea58f22 /src/input_handler.cc | |
| parent | fab9c92006beabf8bfd521a9a46bdad9e87e0402 (diff) | |
Fix case where a context ends up locked in no-hooks mode
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 7 |
1 files 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 { |
