From ea15c7129ade457aea528c30a2562c15b0fb38c7 Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Sat, 11 Apr 2009 10:20:51 -0400 Subject: [PATCH] fixed a minor detail in s:UpdatePlaceholderTabStops() --- autoload/snipMate.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/snipMate.vim b/autoload/snipMate.vim index 53ddd0f..dc8d356 100644 --- a/autoload/snipMate.vim +++ b/autoload/snipMate.vim @@ -182,7 +182,7 @@ fun s:UpdatePlaceholderTabStops() let curLine = line('.') for pos in g:snipPos[s:curPos + 1:] - let changed = pos[0] == curLine && pos[1] > s:origSnipPos ? 1 : 0 + let changed = pos[0] == curLine && pos[1] > s:origSnipPos let changedVars = 0 let endPlaceholder = pos[2] - 1 + pos[1] " Subtract changeLen from each tab stop that was after any of @@ -204,8 +204,9 @@ fun s:UpdatePlaceholderTabStops() if pos[2] == -1 | continue | endif " Do the same to any placeholders in the other tab stops. for nPos in pos[3] - let changed = nPos[0] == curLine && nPos[1] > s:origSnipPos ? 1 : 0 + let changed = nPos[0] == curLine && nPos[1] > s:origSnipPos for [lnum, col] in s:origPos + if lnum > nPos[0] | break | endif if nPos[0] == lnum && nPos[1] > col let changed += 1 endif