mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-03 00:58:31 +02:00
* fix making string empty in readln when cursor is not at the end
This commit is contained in:
parent
3f5541e996
commit
95ce19f3b2
@ -722,7 +722,10 @@ Begin
|
||||
#8 : BackSpace;
|
||||
^Y,
|
||||
#27 : begin
|
||||
f.bufpos:=f.bufend;
|
||||
while f.bufpos<f.bufend do begin
|
||||
WriteChar(f.bufptr^[f.bufpos]);
|
||||
inc(f.bufpos);
|
||||
end;
|
||||
while f.bufend>0 do
|
||||
BackSpace;
|
||||
end;
|
||||
@ -831,7 +834,10 @@ end.
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.7 2002-09-10 10:38:04 pierre
|
||||
Revision 1.8 2002-12-15 20:22:24 peter
|
||||
* fix making string empty in readln when cursor is not at the end
|
||||
|
||||
Revision 1.7 2002/09/10 10:38:04 pierre
|
||||
* merged from fixes: fix bug report 1974
|
||||
|
||||
Revision 1.6 2002/09/07 16:01:18 peter
|
||||
|
Loading…
Reference in New Issue
Block a user