1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2025-12-22 14:08:01 +01:00

fixed bug with file-based snippets

This commit is contained in:
Michael Sanders
2009-03-08 21:52:11 -04:00
parent 562d78749d
commit c265dcb96e

View File

@@ -63,8 +63,8 @@ fun! ExtractSnips(dir, ft)
for path in split(globpath(a:dir, '*'), "\n")
if isdirectory(path)
for snipFile in split(globpath(path, '*.snippet'), "\n")
call s:ProcessFile(snipFile, a:ft,
\ strpart(path, strridx(path, slash)+1, slash))
call s:ProcessFile(snipFile, a:ft, slash,
\ strpart(path, strridx(path, slash) + 1))
endfor
else
call s:ProcessFile(path, a:ft, slash)