diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-09 19:48:50 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-11-09 21:34:04 +0800 |
commit | f748a73a357710db6094d4a428cd056f5df226a9 (patch) | |
tree | 152ee1887dbeb5b2cd14bc2742e57fccabede040 /test/functional/api/keymap_spec.lua | |
parent | d4dbfb092b370bced6728e07a38661a579ff5e4b (diff) | |
download | rneovim-f748a73a357710db6094d4a428cd056f5df226a9.tar.gz rneovim-f748a73a357710db6094d4a428cd056f5df226a9.tar.bz2 rneovim-f748a73a357710db6094d4a428cd056f5df226a9.zip |
vim-patch:8.2.4861: it is not easy to restore saved mappings
Problem: It is not easy to restore saved mappings.
Solution: Make mapset() accept a dict argument. (Ernie Rael, closes vim/vim#10295)
https://github.com/vim/vim/commit/51d04d16f21e19d6eded98f9530d84089102f925
Co-authored-by: Ernie Rael <errael@raelity.com>
Diffstat (limited to 'test/functional/api/keymap_spec.lua')
-rw-r--r-- | test/functional/api/keymap_spec.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/api/keymap_spec.lua b/test/functional/api/keymap_spec.lua index 8cb97e5ef0..f105a31ed9 100644 --- a/test/functional/api/keymap_spec.lua +++ b/test/functional/api/keymap_spec.lua @@ -36,6 +36,7 @@ describe('nvim_get_keymap', function() buffer=0, nowait=0, mode='n', + abbr=0, noremap=1, lnum=0, } @@ -262,6 +263,7 @@ describe('nvim_get_keymap', function() scriptversion=1, buffer=0, nowait=0, + abbr=0, noremap=1, lnum=0, } @@ -325,6 +327,7 @@ describe('nvim_get_keymap', function() lhsraw='| |', rhs='| |', mode='n', + abbr=0, script=0, silent=0, expr=0, @@ -372,6 +375,7 @@ describe('nvim_get_keymap', function() buffer=0, nowait=0, mode='n', + abbr=0, noremap=0, lnum=0, }, mapargs[1]) @@ -391,6 +395,7 @@ describe('nvim_get_keymap', function() buffer=0, nowait=0, mode='n', + abbr=0, noremap=0, lnum=0, desc='map description' @@ -426,6 +431,7 @@ describe('nvim_set_keymap, nvim_del_keymap', function() local to_return = {} to_return.mode = normalize_mapmode(mode, true) + to_return.abbr = mode:sub(-1) == 'a' and 1 or 0 to_return.noremap = not opts.noremap and 0 or 1 to_return.lhs = lhs to_return.rhs = rhs |