aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2016-10-01 19:54:59 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2016-10-01 20:07:27 +0900
commitdb324879d2956a2527851102183723df63039904 (patch)
tree68f27a7a557325130508ed2b1f8c277b20d218d6 /src/nvim/testdir
parentde802fd4d22e813713bbd6825bfd75c5287a50b4 (diff)
downloadrneovim-db324879d2956a2527851102183723df63039904.tar.gz
rneovim-db324879d2956a2527851102183723df63039904.tar.bz2
rneovim-db324879d2956a2527851102183723df63039904.zip
vim-patch:7.4.2205
Problem: 'wildignore' always applies to getcompletion(). Solution: Add an option to use 'wildignore' or not. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/e9d58a6459687a1228b5aa85bd7b31f8f1e528a8
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_cmdline.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim
index 796fbdd45a..bc5a5ca4ec 100644
--- a/src/nvim/testdir/test_cmdline.vim
+++ b/src/nvim/testdir/test_cmdline.vim
@@ -89,6 +89,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)