diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-01-07 06:00:49 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-07 06:00:49 +0800 |
| commit | 218ea9fff775f7ab9c0042bb993a3b89362cf0d2 (patch) | |
| tree | 37978db9986b2ff52dcac30bc0efa2db156b1014 /test/functional/vimscript | |
| parent | 661455cc4757f3de524f7f47bccf0c46fe0bc586 (diff) | |
fix(mappings): always include replace_keycodes in mapping dicts (#37272)
Omitting replace_keycodes when it is false causes some confusion as its
default value is unclear. In nvim_set_keymap() it defaults to false, but
in vim.keymap.set() it defaults to true when it matters.
Diffstat (limited to 'test/functional/vimscript')
| -rw-r--r-- | test/functional/vimscript/map_functions_spec.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/vimscript/map_functions_spec.lua b/test/functional/vimscript/map_functions_spec.lua index b69b7dbd57..4b06af8afc 100644 --- a/test/functional/vimscript/map_functions_spec.lua +++ b/test/functional/vimscript/map_functions_spec.lua @@ -25,6 +25,7 @@ describe('maparg()', function() silent = 0, rhs = 'bar', expr = 0, + replace_keycodes = 0, sid = 0, scriptversion = 1, buffer = 0, @@ -157,6 +158,7 @@ describe('maparg()', function() buffer = 0, expr = 0, + replace_keycodes = 0, mode = 'n', mode_bits = 0x01, abbr = 0, |
