From 0f61c6be4f9bff390baafa9ea350f530d73c2303 Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Sun, 29 Mar 2009 16:07:40 -0400 Subject: [PATCH] fixed error message when 'fen' is set --- autoload/snipMate.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/snipMate.vim b/autoload/snipMate.vim index 4f8cf03..886bfc9 100644 --- a/autoload/snipMate.vim +++ b/autoload/snipMate.vim @@ -36,7 +36,7 @@ fun snipMate#expandSnip(col) " Autoindent snippet according to previous indentation let indent = matchend(line, '^.\{-}\ze\(\S\|$\)') + 1 call append(lnum, map(snip[1:], "'".strpart(line, 0, indent - 1)."'.v:val")) - if &fen | exe lnum.','.(lnum + len(snip) - 1).'foldopen' | endif + if &fen | sil! exe lnum.','.(lnum + len(snip) - 1).'foldopen' | endif let snipLen = s:BuildTabStops(lnum, col - indent, indent) unl g:snippet