From c265dcb96e86c34076dacbe4a90a3bd287888169 Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Sun, 8 Mar 2009 21:52:11 -0400 Subject: [PATCH] fixed bug with file-based snippets --- plugin/snipMate.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/snipMate.vim b/plugin/snipMate.vim index cb278fb..2dc4048 100644 --- a/plugin/snipMate.vim +++ b/plugin/snipMate.vim @@ -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)