mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 13:19:21 +02:00
SynEdit: Improved backspace, with the new auto-indent "position only"
git-svn-id: trunk@18244 -
This commit is contained in:
parent
40ef04413d
commit
c3f6bb62e5
@ -6697,7 +6697,11 @@ begin
|
|||||||
then begin
|
then begin
|
||||||
// only move caret one column
|
// only move caret one column
|
||||||
Helper := ' ';
|
Helper := ' ';
|
||||||
|
bChangeScroll := not (eoScrollPastEol in fOptions);
|
||||||
|
Include(fOptions, eoScrollPastEol);
|
||||||
CaretX := CaretX - 1;
|
CaretX := CaretX - 1;
|
||||||
|
if bChangeScroll then
|
||||||
|
Exclude(fOptions, eoScrollPastEol);
|
||||||
{$IFDEF SYN_LAZARUS}
|
{$IFDEF SYN_LAZARUS}
|
||||||
// behind EOL, there was no char to delete, this wa a simple cursor move, do not undo
|
// behind EOL, there was no char to delete, this wa a simple cursor move, do not undo
|
||||||
Caret := CaretXY;
|
Caret := CaretXY;
|
||||||
|
Loading…
Reference in New Issue
Block a user