fix possible error on editor NextWarning command

This commit is contained in:
Basile Burg 2018-02-01 15:56:30 +01:00
parent 90494c8290
commit ee4b928c8c
1 changed files with 1 additions and 1 deletions

View File

@ -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;