From f748a73a357710db6094d4a428cd056f5df226a9 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 9 Nov 2023 19:48:50 +0800 Subject: 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 --- test/functional/api/keymap_spec.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/functional/api') 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 -- cgit