1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2025-12-24 15:12:28 +01:00

added support for the 'shellslash' option on Windows

This commit is contained in:
Michael Sanders
2009-03-15 18:53:54 -04:00
parent 5527548d63
commit 0180a85088

View File

@@ -55,7 +55,7 @@ fun s:MakeSnippet(text, scope, multisnip)
endf
fun! ExtractSnips(dir, ft)
let slash = has('win16') || has('win32') || has('win64') ? '\\' : '/'
let slash = !&ssl && (has('win16') || has('win32') || has('win64')) ? '\\' : '/'
for path in split(globpath(a:dir, '*'), "\n")
if isdirectory(path)
for snipFile in split(globpath(path, '*.snippet'), "\n")