SynEdit: Fix trailing spaces and tab-blockindent. trimming spaces would sometimes unset the selection.

git-svn-id: trunk@17790 -
This commit is contained in:
martin 2008-12-10 23:34:51 +00:00
parent fc8a0777a9
commit 3ca6d95bcb

View File

@ -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