diff options
| author | skippi <jbtcao@gmail.com> | 2020-10-25 18:48:41 -0500 |
|---|---|---|
| committer | skippi <jbtcao@gmail.com> | 2020-10-26 15:22:23 -0500 |
| commit | f8fd3d44ac7a89d5573b93a16896abb457e528e0 (patch) | |
| tree | 641679cbf2d9f6db99bc837fdc340e5996235dc5 /src/nvim/testdir | |
| parent | c203f89ace4617681fe0feb9f535c74ed0910796 (diff) | |
| download | rneovim-f8fd3d44ac7a89d5573b93a16896abb457e528e0.tar.gz rneovim-f8fd3d44ac7a89d5573b93a16896abb457e528e0.tar.bz2 rneovim-f8fd3d44ac7a89d5573b93a16896abb457e528e0.zip | |
vim-patch:8.1.1791: 'completeslash' also applies to globpath()
Problem: 'completeslash' also applies to globpath().
Solution: Add the WILD_IGNORE_COMPLETESLASH flag. (test by Yasuhiro
Matsumoto, closes vim/vim#4760)
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_ins_complete.vim | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/nvim/testdir/test_ins_complete.vim b/src/nvim/testdir/test_ins_complete.vim index 45b0d159d4..be79b33f9c 100644 --- a/src/nvim/testdir/test_ins_complete.vim +++ b/src/nvim/testdir/test_ins_complete.vim @@ -367,17 +367,15 @@ endfunc " Test for insert path completion with completeslash option func Test_ins_completeslash() - if !has('win32') - return - endif - + CheckMSWindows + call mkdir('Xdir') let orig_shellslash = &shellslash set cpt& new - + set noshellslash set completeslash= @@ -408,7 +406,12 @@ func Test_ins_completeslash() %bw! call delete('Xdir', 'rf') + set noshellslash + set completeslash=slash + call assert_true(stridx(globpath(&rtp, 'syntax/*.vim', 1, 1)[0], '\') != -1) + let &shellslash = orig_shellslash + set completeslash= endfunc func Test_pum_with_folds_two_tabs() |