mirror of https://gitlab.com/basile.b/dexed.git
fix possible error on editor NextWarning command
This commit is contained in:
parent
90494c8290
commit
ee4b928c8c
|
@ -1955,7 +1955,7 @@ begin
|
||||||
if fDscannerResults.item[i]^.line <= caretY then
|
if fDscannerResults.item[i]^.line <= caretY then
|
||||||
break;
|
break;
|
||||||
end;
|
end;
|
||||||
if j < fDscannerResults.count then
|
if (j <> -1) and (j < fDscannerResults.count) then
|
||||||
begin
|
begin
|
||||||
CaretY:= fDscannerResults.item[j]^.line;
|
CaretY:= fDscannerResults.item[j]^.line;
|
||||||
EnsureCursorPosVisible;
|
EnsureCursorPosVisible;
|
||||||
|
|
Loading…
Reference in New Issue