mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 09:39:16 +02:00
SynEdit: Fixed smNormal Block-Selectional for Past-EOL. If only one line was selected the Area past EOL was ignored
git-svn-id: trunk@21038 -
This commit is contained in:
parent
e17a71f967
commit
430990d9f1
@ -658,9 +658,12 @@ begin
|
||||
TotalLen := 0;
|
||||
case ActiveSelectionMode of
|
||||
smNormal:
|
||||
if (First = Last) then
|
||||
Result := Copy(FLines[First], ColFrom, ColTo - ColFrom)
|
||||
else begin
|
||||
if (First = Last) then begin
|
||||
Result := Copy(FLines[First], ColFrom, ColTo - ColFrom);
|
||||
I := (ColTo - ColFrom) - length(Result);
|
||||
if I > 0 then
|
||||
Result := Result + StringOfChar(' ', I);
|
||||
end else begin
|
||||
// step1: calculate total length of result string
|
||||
TotalLen := Max(0, Length(FLines[First]) - ColFrom + 1);
|
||||
for i := First + 1 to Last - 1 do
|
||||
|
Loading…
Reference in New Issue
Block a user