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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user