mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-01-21 08:37:46 +08:00
bugfix: fixed another infinite loop when detecting sexy comments
This commit is contained in:
parent
f5092782ee
commit
3eb5a0fcde
|
@ -2325,7 +2325,7 @@ function s:FindBoundingLinesOfSexyCom(lineNum)
|
|||
let theLine = getline(currentLine)
|
||||
|
||||
"check if the current line is the top of the sexy comment
|
||||
if theLine =~ '^[ \t]*' . left && theLine !~ '.*' . right && currentLine < s:NumLinesInBuf()
|
||||
if currentLine <= a:lineNum && theLine =~ '^[ \t]*' . left && theLine !~ '.*' . right && currentLine < s:NumLinesInBuf()
|
||||
let top = currentLine
|
||||
let currentLine = a:lineNum
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user