mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-02-21 00:20:25 +08:00
Fix bug when inverting sexy comments
This commit is contained in:
parent
33e3ace742
commit
d54bcbfc98
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user