fix stream.readline

This commit is contained in:
Daniella / Tove 2022-05-17 20:45:45 +02:00
parent 1fe56dbf17
commit 2cbde3e64a

View file

@ -31,9 +31,9 @@ func stream.readline {
-1
2 stop
}
while { ( i 1 + =i ) ( byte 10 eq not ) } {
while { ( i 1 + =i ) ( byte 10 eq not byte -1 eq not) } {
id STREAM.read stream dup =byte _char
}
} pop
] =array
array alen 0 eq if {
array _string