synedit: not adding spaces if eoScrollPastEOL on line break, bug #11745

git-svn-id: trunk@15875 -
This commit is contained in:
mattias 2008-07-26 16:13:56 +00:00
parent cbc57806d7
commit c7b7a0b503

View File

@ -8184,7 +8184,7 @@ begin
end;
Lines.Insert(CaretY, '');
if Command = ecLineBreak then begin
if SpaceCount2 > 0 then
if (SpaceCount2 > 0) and (not (eoScrollPastEol in Options)) then
Lines[CaretY] := StringOfChar(' ', SpaceCount2);
CaretXY := Point(SpaceCount2 + 1, CaretY + 1);
end;