aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-17 16:28:15 +0800
committerGitHub <noreply@github.com>2023-01-17 16:28:15 +0800
commit8abf53be6e2aa92a60220a11c2a5ad6d9b364235 (patch)
treeef37b9f58313e74369aca271eb87b849ce6b4a7e /src/nvim/testdir
parentfc692dfce1dada0b40356bfcdfc55ee783f9ee2d (diff)
downloadrneovim-8abf53be6e2aa92a60220a11c2a5ad6d9b364235.tar.gz
rneovim-8abf53be6e2aa92a60220a11c2a5ad6d9b364235.tar.bz2
rneovim-8abf53be6e2aa92a60220a11c2a5ad6d9b364235.zip
vim-patch:9.0.0089: fuzzy argument completion doesn't work for shell commands (#21852)
Problem: Fuzzy argument completion doesn't work for shell commands. Solution: Check for cmdidx not being CMD_bang. (Yegappan Lakshmanan, closes vim/vim#10769) https://github.com/vim/vim/commit/7db3a8e3298bf7c7c3f74cc9c1add04f29e78d2d Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_cmdline.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim
index 20e8214692..210c2774f2 100644
--- a/src/nvim/testdir/test_cmdline.vim
+++ b/src/nvim/testdir/test_cmdline.vim
@@ -3384,6 +3384,16 @@ func Test_cmdline_complete_substitute_short()
endfor
endfunc
+" Test for :! shell command argument completion
+func Test_cmdline_complete_bang_cmd_argument()
+ set wildoptions=fuzzy
+ call feedkeys(":!vim test_cmdline.\<Tab>\<C-B>\"\<CR>", 'xt')
+ call assert_equal('"!vim test_cmdline.vim', @:)
+ set wildoptions&
+ call feedkeys(":!vim test_cmdline.\<Tab>\<C-B>\"\<CR>", 'xt')
+ call assert_equal('"!vim test_cmdline.vim', @:)
+endfunc
+
func Check_completion()
call assert_equal('let a', getcmdline())
call assert_equal(6, getcmdpos())