summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-11-10 21:24:47 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-11-10 21:24:47 +0000
commit217dd6a1de9aae487955826fe0ca8f17eff8483d (patch)
treee606240f0f379ef213b042cb9a1158e73d76f7cb /src/input_handler.cc
parenta0bcdd83df6d279f22042915266b53e70e80c140 (diff)
Disable history when executing maps
Fixes #476
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index 2cb1f379..b7b21845 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -1336,6 +1336,7 @@ void InputHandler::handle_key(Key key)
if (keymaps.is_mapped(key, keymap_mode) and
not m_context.keymaps_disabled())
{
+ ScopedSetBool disable_history{context().history_disabled()};
for (auto& k : keymaps.get_mapping(key, keymap_mode))
current_mode().handle_key(k);
}