diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-03-22 22:54:29 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-03-22 22:54:29 +0000 |
| commit | 5bf92430064a5136dba51402bd852398cee7e994 (patch) | |
| tree | a146fff9cb74b25a7e00a90eaa2c4afe3d451001 /src/normal.cc | |
| parent | c1c17db5e9a3bc62f2023bbf355b9031837ee7f4 (diff) | |
User mappings and :exec are always executed in normal mode
Fix #551
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/normal.cc b/src/normal.cc index 5f5fb177..ab08da9b 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1456,6 +1456,9 @@ void exec_user_mappings(Context& context, NormalParams params) auto mapping = context.keymaps().get_mapping(key, KeymapMode::User); ScopedSetBool disable_keymaps(context.keymaps_disabled()); + + InputHandler::ScopedForceNormal force_normal{context.input_handler()}; + ScopedEdition edition(context); for (auto& key : mapping) context.input_handler().handle_key(key); |
