mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 06:09:14 +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);
|
inc(BB.x, fBlockIndent);
|
||||||
BE.x := x;
|
BE.x := x;
|
||||||
end;
|
end;
|
||||||
|
TSynEditStringTrimmingList(fTrimLines).ForceTrim; // Otherwise it may reset the block
|
||||||
SetCaretAndSelection(LogicalToPhysicalPos(BE), BB, BE);
|
SetCaretAndSelection(LogicalToPhysicalPos(BE), BB, BE);
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
SetCaretAndSelection(OrgCaretPos,
|
SetCaretAndSelection(OrgCaretPos,
|
||||||
@ -9318,6 +9319,7 @@ begin
|
|||||||
dec(BB.x, FirstIndent);
|
dec(BB.x, FirstIndent);
|
||||||
dec(BE.x, LastIndent);
|
dec(BE.x, LastIndent);
|
||||||
end;
|
end;
|
||||||
|
TSynEditStringTrimmingList(fTrimLines).ForceTrim; // Otherwise it may reset the block
|
||||||
SetCaretAndSelection(LogicalToPhysicalPos(BE), BB, BE);
|
SetCaretAndSelection(LogicalToPhysicalPos(BE), BB, BE);
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
if FirstIndent = -1 then
|
if FirstIndent = -1 then
|
||||||
|
Loading…
Reference in New Issue
Block a user