Synedit: Minor code cleanup. Issue #38035, patch from Cyrax.

git-svn-id: trunk@64111 -
This commit is contained in:
juha 2020-11-06 10:42:03 +00:00
parent 741a56883e
commit 6b4b3e9eb4

View File

@ -1211,10 +1211,9 @@ end;
function TSynGutterLOvProviderBookmarks.IndexOfSynMark(ASynMark: TSynEditMark): Integer;
begin
Result := FMarkList.Count - 1;
while Result >= 0 do begin;
while Result >= 0 do begin
if FMarkList[Result].FData = Pointer(ASynMark) then exit;
dec(Result);
end;
end;