SynEdit: Improved backspace, with the new auto-indent "position only"

git-svn-id: trunk@18244 -
This commit is contained in:
martin 2009-01-10 21:43:16 +00:00
parent 40ef04413d
commit c3f6bb62e5

View File

@ -6697,7 +6697,11 @@ begin
then begin
// only move caret one column
Helper := ' ';
bChangeScroll := not (eoScrollPastEol in fOptions);
Include(fOptions, eoScrollPastEol);
CaretX := CaretX - 1;
if bChangeScroll then
Exclude(fOptions, eoScrollPastEol);
{$IFDEF SYN_LAZARUS}
// behind EOL, there was no char to delete, this wa a simple cursor move, do not undo
Caret := CaretXY;