mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-22 22:28:02 +01:00
fixed bug with file-based snippets
This commit is contained in:
@@ -63,8 +63,8 @@ fun! ExtractSnips(dir, ft)
|
|||||||
for path in split(globpath(a:dir, '*'), "\n")
|
for path in split(globpath(a:dir, '*'), "\n")
|
||||||
if isdirectory(path)
|
if isdirectory(path)
|
||||||
for snipFile in split(globpath(path, '*.snippet'), "\n")
|
for snipFile in split(globpath(path, '*.snippet'), "\n")
|
||||||
call s:ProcessFile(snipFile, a:ft,
|
call s:ProcessFile(snipFile, a:ft, slash,
|
||||||
\ strpart(path, strridx(path, slash)+1, slash))
|
\ strpart(path, strridx(path, slash) + 1))
|
||||||
endfor
|
endfor
|
||||||
else
|
else
|
||||||
call s:ProcessFile(path, a:ft, slash)
|
call s:ProcessFile(path, a:ft, slash)
|
||||||
|
|||||||
Reference in New Issue
Block a user