mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 11:29:41 +02:00
* Move cursor forward instead of backward when deleting
git-svn-id: trunk@30926 -
This commit is contained in:
parent
36dfe750d8
commit
f1db1db8b9
@ -889,10 +889,10 @@ begin
|
||||
TempItem^.Previous^.Next := TempItem^.Next;
|
||||
if FCurrentItem = TempItem then
|
||||
begin
|
||||
if FCurrentItem^.Previous <> FBeginItem then
|
||||
FCurrentItem := FCurrentItem^.Previous
|
||||
if FCurrentItem^.Next <> FEndItem then
|
||||
FCurrentItem := FCurrentItem^.Next
|
||||
else
|
||||
FCurrentItem := FCurrentItem^.Next;
|
||||
FCurrentItem := FCurrentItem^.Previous;
|
||||
end;
|
||||
// Dec FNextAutoInc (only if deleted item is the last record)
|
||||
if FAutoIncFieldNo <> -1 then
|
||||
|
Loading…
Reference in New Issue
Block a user