mirror of
https://github.com/hsoft/collapseos.git
synced 2025-04-02 11:38:40 +11:00
_type: exit if input is not available
Currently when BUF _type is executed, if there is a newline immediately after _type, no input is available. C< returns 0, and it is stored in the buffer. _type then proceeds to read until another newline is reached, and the resulting buffer contents looks like "\x00xyz\x0d" (in C string notation). This change makes _type exit early in this case and keep the buffer unchanged. _type is used by editor words such as I and F, so this bug affects them as well.
This commit is contained in:
parent
723d3c4249
commit
132bc8f41c
Loading…
Reference in New Issue
Block a user