Fix bug when inverting sexy comments

This commit is contained in:
bryanv 2010-09-01 14:38:53 +08:00 committed by Martin Grenfell
parent 33e3ace742
commit d54bcbfc98

View File

@ -976,7 +976,7 @@ function s:InvertComment(firstLine, lastLine)
"move to the line after last line of the sexy comment
let numLinesAfterSexyComRemoved = s:NumLinesInBuf()
let currentLine = bottomBound - (numLinesBeforeSexyComRemoved - numLinesAfterSexyComRemoved) + 1
let currentLine = sexyComBounds[1] - (numLinesBeforeSexyComRemoved - numLinesAfterSexyComRemoved) + 1
" the line isnt commented
else