summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_ins_complete.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-02 19:52:15 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-02 19:52:15 +0200
commit50f91d22bd81819d5d946f6c38252c7922120ec6 (patch)
treed912f1df29edd7983c990f5a64049ba71a4be6b8 /src/testdir/test_ins_complete.vim
parent8750026a7f6b445c43adc990141a3fe92d680b62 (diff)
patch 8.1.1791: 'completeslash' also applies to globpath()v8.1.1791
Problem: 'completeslash' also applies to globpath(). Solution: Add the WILD_IGNORE_COMPLETESLASH flag. (test by Yasuhiro Matsumoto, closes #4760)
Diffstat (limited to 'src/testdir/test_ins_complete.vim')
-rw-r--r--src/testdir/test_ins_complete.vim12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim
index fedb38acb5..e48a72c5d2 100644
--- a/src/testdir/test_ins_complete.vim
+++ b/src/testdir/test_ins_complete.vim
@@ -1,3 +1,4 @@
+source check.vim
" Test for insert expansion
func Test_ins_complete()
@@ -334,15 +335,11 @@ endfunc
" Test for insert path completion with completeslash option
func Test_ins_completeslash()
- if !has('win32')
- throw 'Skipped: only works on MS-Windows'
- endif
+ CheckMSWindows
call mkdir('Xdir')
-
let orig_shellslash = &shellslash
set cpt&
-
new
set noshellslash
@@ -375,6 +372,11 @@ 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