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
|
||||
break;
|
||||
end;
|
||||
if j < fDscannerResults.count then
|
||||
if (j <> -1) and (j < fDscannerResults.count) then
|
||||
begin
|
||||
CaretY:= fDscannerResults.item[j]^.line;
|
||||
EnsureCursorPosVisible;
|
||||
|
|
Loading…
Reference in New Issue