Disable history when executing maps

Fixes #476
This commit is contained in:
Maxime Coste 2015-11-10 21:24:47 +00:00
parent a0bcdd83df
commit 217dd6a1de

View File

@ -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);
}