From 4f093637f1d2589f55b9463948a3545102af4ebb Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Thu, 26 Mar 2009 16:20:50 -0400 Subject: [PATCH] fixed bug with hyphened *.snippets files --- plugin/snipMate.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/snipMate.vim b/plugin/snipMate.vim index 7ec70da..d0553d1 100644 --- a/plugin/snipMate.vim +++ b/plugin/snipMate.vim @@ -73,7 +73,7 @@ endf fun! ExtractSnipsFile(file) if !filereadable(a:file) | return | endif let text = readfile(a:file) - let ft = fnamemodify(a:file, ':t:r') + let ft = substitute(fnamemodify(a:file, ':t:r'), '\(.\{-}\)-.*', '\1', '') let inSnip = 0 for line in text + ["\n"] if inSnip && (line == '' || strpart(line, 0, 1) == "\t")