1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2026-01-06 13:54:18 +01:00

fixed loading snippets for Windows

This commit is contained in:
Michael Sanders
2009-03-29 15:52:34 -04:00
parent efa2ab895b
commit d319e8a7ed

View File

@@ -106,10 +106,12 @@ let g:did_ft = {}
fun! GetSnippets(dir)
for ft in split(&ft, '\.')
if has_key(g:did_ft, ft) | continue | endif
for path in split(globpath(a:dir, ft.'\(-*\)\=/'), '\n')
for path in split(globpath(a:dir, ft.'/')."\n".
\ globpath(a:dir, ft.'-*/'), "\n")
call ExtractSnips(path, ft)
endfor
for path in split(globpath(a:dir, ft.'\(-*\)\=.snippets'), '\n')
for path in split(globpath(a:dir, ft.'.snippets')."\n".
\ globpath(a:dir, ft.'-*.snippets'), "\n")
call ExtractSnipsFile(path)
endfor
let g:did_ft[ft] = 1