mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 15:48:03 +02:00
SynEdit: Fix trailing spaces and tab-blockindent. trimming spaces would sometimes unset the selection.
git-svn-id: trunk@17790 -
This commit is contained in:
parent
fc8a0777a9
commit
3ca6d95bcb
@ -9163,6 +9163,7 @@ begin
|
||||
inc(BB.x, fBlockIndent);
|
||||
BE.x := x;
|
||||
end;
|
||||
TSynEditStringTrimmingList(fTrimLines).ForceTrim; // Otherwise it may reset the block
|
||||
SetCaretAndSelection(LogicalToPhysicalPos(BE), BB, BE);
|
||||
{$ELSE}
|
||||
SetCaretAndSelection(OrgCaretPos,
|
||||
@ -9318,6 +9319,7 @@ begin
|
||||
dec(BB.x, FirstIndent);
|
||||
dec(BE.x, LastIndent);
|
||||
end;
|
||||
TSynEditStringTrimmingList(fTrimLines).ForceTrim; // Otherwise it may reset the block
|
||||
SetCaretAndSelection(LogicalToPhysicalPos(BE), BB, BE);
|
||||
{$ELSE}
|
||||
if FirstIndent = -1 then
|
||||
|
Loading…
Reference in New Issue
Block a user