aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-01-29 02:42:14 +0800
committerGitHub <noreply@github.com>2022-01-29 02:42:14 +0800
commitb396387ec8c1377f07632f606dca7a3ac7b37a1b (patch)
tree957fb666d17d425033c47885cb65e6bb55c43fff /src/nvim/testdir
parent65529dd7a13d5f5340c44c36c443bcd830522cef (diff)
parent30547c0d2b051dd4067f3197b968c28456fd23ff (diff)
downloadrneovim-b396387ec8c1377f07632f606dca7a3ac7b37a1b.tar.gz
rneovim-b396387ec8c1377f07632f606dca7a3ac7b37a1b.tar.bz2
rneovim-b396387ec8c1377f07632f606dca7a3ac7b37a1b.zip
Merge pull request #16829 from zeertzjq/vim-8.2.2887
vim-patch:8.2.{2887,3414,3999}: fullcommand() follow-up patches
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_cmdline.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim
index 1672b0e840..ff4cbe544c 100644
--- a/src/nvim/testdir/test_cmdline.vim
+++ b/src/nvim/testdir/test_cmdline.vim
@@ -500,8 +500,16 @@ func Test_fullcommand()
for [in, want] in items(tests)
call assert_equal(want, fullcommand(in))
endfor
+ call assert_equal('', fullcommand(v:_null_string))
call assert_equal('syntax', 'syn'->fullcommand())
+
+ command -buffer BufferLocalCommand :
+ command GlobalCommand :
+ call assert_equal('GlobalCommand', fullcommand('GlobalCom'))
+ call assert_equal('BufferLocalCommand', fullcommand('BufferL'))
+ delcommand BufferLocalCommand
+ delcommand GlobalCommand
endfunc
func Test_shellcmd_completion()