From 217dd6a1de9aae487955826fe0ca8f17eff8483d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 10 Nov 2015 21:24:47 +0000 Subject: [PATCH] Disable history when executing maps Fixes #476 --- src/input_handler.cc | 1 + 1 file changed, 1 insertion(+) 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); }