diff src/testdir/test_cmdline.vim @ 10002:ff0b4216f026 v7.4.2274

commit https://github.com/vim/vim/commit/73d4e4c8922f6f4d256f910a18f47c0c3a48c28b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 27 21:55:13 2016 +0200 patch 7.4.2274 Problem: Command line completion on "find **/filename" drops sub-directory. Solution: Handle this case separately. (Harm te Hennepe, closes https://github.com/vim/vim/issues/932, closes https://github.com/vim/vim/issues/939)
author Christian Brabandt <cb@256bit.org>
date Sat, 27 Aug 2016 22:00:07 +0200
parents 74f67cb4f7e1
children a4d4ee212dab
line wrap: on
line diff
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -180,3 +180,11 @@ func Test_getcompletion()
 
   call assert_fails('call getcompletion("", "burp")', 'E475:')
 endfunc
+
+func Test_expand_star_star()
+  call mkdir('a/b', 'p')
+  call writefile(['asdfasdf'], 'a/b/fileXname')
+  call feedkeys(":find **/fileXname\<Tab>\<CR>", 'xt')
+  call assert_equal('find a/b/fileXname', getreg(':'))
+  call delete('a', 'rf')
+endfunc