mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-07 05:19:02 +01:00
synedit: fix range check errors
git-svn-id: trunk@17619 -
This commit is contained in:
parent
aa21e07575
commit
047a034477
@ -8185,12 +8185,12 @@ begin
|
||||
ecSetMarker0..ecSetMarker9,ecToggleMarker0..ecToggleMarker9:
|
||||
begin
|
||||
if BookMarkOptions.EnableKeys then begin
|
||||
if Command in [ecSetMarker0..ecSetMarker9] then
|
||||
if (Command >= ecSetMarker0) and (Command <= ecSetMarker9) then
|
||||
CX := Command - ecSetMarker0
|
||||
else
|
||||
CX := Command - ecToggleMarker0;
|
||||
if assigned(fBookMarks[CX]) then begin
|
||||
moveBkm := (Command in [ecSetMarker0..ecSetMarker9])
|
||||
moveBkm := ((Command >= ecSetMarker0) and (Command <= ecSetMarker9))
|
||||
or (fBookMarks[CX].Line <> CaretY);
|
||||
ClearBookMark(CX);
|
||||
if moveBkm then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user