TextEditor: Fix a possible crash while highlighting.
[GB.FORM.EDITOR] * BUG: TextEditor: Fix a possible crash while highlighting.
This commit is contained in:
parent
30b0f835e3
commit
10c7e236dc
1 changed files with 1 additions and 1 deletions
|
@ -986,7 +986,7 @@ Public Sub HighlightUntil(Y As Integer)
|
||||||
If Not StartHighlight() Then Return
|
If Not StartHighlight() Then Return
|
||||||
|
|
||||||
iNextFirst = -1
|
iNextFirst = -1
|
||||||
For L = $iFirstInvalidHighlight To Y
|
For L = $iFirstInvalidHighlight To Min(Y, Lines.Max)
|
||||||
If L = $iDoNotHighlightLine And If Info(L).Modified Then
|
If L = $iDoNotHighlightLine And If Info(L).Modified Then
|
||||||
If iNextFirst < 0 Then iNextFirst = L
|
If iNextFirst < 0 Then iNextFirst = L
|
||||||
Continue
|
Continue
|
||||||
|
|
Loading…
Reference in a new issue