diff src/testdir/test_cmdline.vim @ 29495:82b0aeaeaa3c v9.0.0089

patch 9.0.0089: fuzzy argument completion doesn't work for shell commands Commit: https://github.com/vim/vim/commit/7db3a8e3298bf7c7c3f74cc9c1add04f29e78d2d Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Tue Jul 26 22:01:36 2022 +0100 patch 9.0.0089: fuzzy argument completion doesn't work for shell commands Problem: Fuzzy argument completion doesn't work for shell commands. Solution: Check for cmdidx not being CMD_bang. (Yegappan Lakshmanan, closes #10769)
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Jul 2022 23:15:03 +0200
parents 7c639dff32dd
children ee5acbac6abe
line wrap: on
line diff
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -3144,6 +3144,16 @@ func Test_cmdline_complete_substitute_sh
   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())