1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2026-01-03 20:34:18 +01:00

fixed error message when 'fen' is set

This commit is contained in:
Michael Sanders
2009-03-29 16:07:40 -04:00
parent d319e8a7ed
commit 0f61c6be4f

View File

@@ -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