aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/keymap_spec.lua
diff options
context:
space:
mode:
authorshadmansaleh <13149513+shadmansaleh@users.noreply.github.com>2022-02-16 12:22:15 +0600
committershadmansaleh <13149513+shadmansaleh@users.noreply.github.com>2022-02-16 13:12:46 +0600
commit07a98b1a75b8c4995ecf8b0e947a1909d91a3d51 (patch)
tree78b56dae59ed462a7caddbe3a71d1f416c0387ff /test/functional/api/keymap_spec.lua
parentf5518b78c843e4b187bd246d31bb7fde2925139e (diff)
downloadrneovim-07a98b1a75b8c4995ecf8b0e947a1909d91a3d51.tar.gz
rneovim-07a98b1a75b8c4995ecf8b0e947a1909d91a3d51.tar.bz2
rneovim-07a98b1a75b8c4995ecf8b0e947a1909d91a3d51.zip
fix: <Nop> not shown in :map commands
Diffstat (limited to 'test/functional/api/keymap_spec.lua')
-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)