aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-16 16:01:17 +0800
committerGitHub <noreply@github.com>2022-02-16 16:01:17 +0800
commitdeb33a9775f53d2b32aeeb1825e773bccb039ca4 (patch)
treed19f99712ea85db29de837eaf7f67b949f157342 /test
parent9ef56961328991e22110c8084cb23e3ef3adde39 (diff)
parent07a98b1a75b8c4995ecf8b0e947a1909d91a3d51 (diff)
downloadrneovim-deb33a9775f53d2b32aeeb1825e773bccb039ca4.tar.gz
rneovim-deb33a9775f53d2b32aeeb1825e773bccb039ca4.tar.bz2
rneovim-deb33a9775f53d2b32aeeb1825e773bccb039ca4.zip
Merge pull request #17422 from shadmansaleh/enhance/maps
fix: <Nop> not shown in :map commands
Diffstat (limited to 'test')
-rw-r--r--test/functional/api/keymap_spec.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/api/keymap_spec.lua b/test/functional/api/keymap_spec.lua
index 450a76ddac..06b699193a 100644
--- a/test/functional/api/keymap_spec.lua
+++ b/test/functional/api/keymap_spec.lua
@@ -1037,4 +1037,9 @@ describe('nvim_buf_set_keymap, nvim_buf_del_keymap', function()
eq(1, exec_lua[[return GlobalCount]])
eq('\nNo mapping found', helpers.exec_capture('nmap asdf'))
end)
+
+ it ('shows <nop> as map rhs', function()
+ meths.set_keymap('n', 'asdf', '<nop>', {})
+ eq('\nn asdf <Nop>', helpers.exec_capture('nmap asdf'))
+ end)
end)