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:
martin 2009-07-31 21:35:53 +00:00
parent e17a71f967
commit 430990d9f1

View File

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