mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 21:40:34 +02:00
* crtwrite didn't handle buffer writes > 255 chars properly, and the textrec buffer is 256 currently (and has been since svn history start). Mantis #22334
git-svn-id: trunk@21738 -
This commit is contained in:
parent
c65abdeeae
commit
1a3d8f483e
@ -711,7 +711,14 @@ begin
|
|||||||
WriteChar(f.buffer[i]);
|
WriteChar(f.buffer[i]);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
s:=s+f.buffer[i];
|
begin
|
||||||
|
if length(s)=255 then
|
||||||
|
begin
|
||||||
|
WriteStr(s);
|
||||||
|
s:='';
|
||||||
|
end;
|
||||||
|
s:=s+f.buffer[i];
|
||||||
|
end;
|
||||||
if s<>'' then
|
if s<>'' then
|
||||||
WriteStr(s);
|
WriteStr(s);
|
||||||
SetScreenCursor(CurrX, CurrY);
|
SetScreenCursor(CurrX, CurrY);
|
||||||
|
Loading…
Reference in New Issue
Block a user