diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-09-01 06:19:49 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-01 06:19:49 +0800 |
| commit | 0c6b39894f4cac99c3d81857986e4eae533fb59a (patch) | |
| tree | 14ee6f1ee8bad5bc99550305a267beb013a2d1f8 /runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | |
| parent | c0050b71e5f68e77a6c6493682b12bceac93c438 (diff) | |
| download | rneovim-0c6b39894f4cac99c3d81857986e4eae533fb59a.tar.gz rneovim-0c6b39894f4cac99c3d81857986e4eae533fb59a.tar.bz2 rneovim-0c6b39894f4cac99c3d81857986e4eae533fb59a.zip | |
feat(mapset): support restoring Lua callback (#20024)
vim-patch:9.0.0341: mapset() does not restore <Nop> mapping properly
Problem: mapset() does not restore <Nop> mapping properly.
Solution: Use an empty string for <Nop>. (closes vim/vim#11022)
https://github.com/vim/vim/commit/92a3d20682d46359bb50a452b4f831659e799155
Diffstat (limited to 'runtime/pack/dist/opt/termdebug/plugin/termdebug.vim')
| -rw-r--r-- | runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index 802ebd42b5..bfece6aa72 100644 --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -964,14 +964,7 @@ func s:DeleteCommands() nunmap K else " call mapset(s:k_map_saved) - let mode = s:k_map_saved.mode !=# ' ' ? s:k_map_saved.mode : '' - call nvim_set_keymap(mode, 'K', s:k_map_saved.rhs, { - \ 'expr': s:k_map_saved.expr ? v:true : v:false, - \ 'noremap': s:k_map_saved.noremap ? v:true : v:false, - \ 'nowait': s:k_map_saved.nowait ? v:true : v:false, - \ 'script': s:k_map_saved.script ? v:true : v:false, - \ 'silent': s:k_map_saved.silent ? v:true : v:false, - \ }) + call mapset('n', 0, s:k_map_saved) endif unlet s:k_map_saved endif |