summaryrefslogtreecommitdiff
path: root/src/testdir/test_ins_complete.vim
diff options
context:
space:
mode:
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 fedb38acb..e48a72c5d 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