diff src/testdir/test_cmdline.vim @ 9861:74f67cb4f7e1 v7.4.2205

commit https://github.com/vim/vim/commit/e9d58a6459687a1228b5aa85bd7b31f8f1e528a8 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 13 15:07:41 2016 +0200 patch 7.4.2205 Problem: 'wildignore' always applies to getcompletion(). Solution: Add an option to use 'wildignore' or not. (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Sat, 13 Aug 2016 15:15:04 +0200
parents 5385e72e1ac2
children ff0b4216f026
line wrap: on
line diff
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -94,6 +94,10 @@ func Test_getcompletion()
   call assert_true(index(l, 'runtest.vim') >= 0)
   let l = getcompletion('walk', 'file')
   call assert_equal([], l)
+  set wildignore=*.vim
+  let l = getcompletion('run', 'file', 1)
+  call assert_true(index(l, 'runtest.vim') < 0)
+  set wildignore&
 
   let l = getcompletion('ha', 'filetype')
   call assert_true(index(l, 'hamster') >= 0)