mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 16:28:05 +11:00
BROWSE: ignore invalid digits (#123)
Documentation in block 100 says a number followed by a space or return lists the contents of the block. However, typing any other character does this too, because _pdacc returns -1 in this case. This is annoying because typing "n" instead of "N" immediately after jumping to some block was bringing you to block 0. Now "n" is ignored instead. This commit changes the condition for printing to explicitly check for the value of 1, which means whitespace according to _pdacc documentation in block 355.
This commit is contained in:
parent
f1a225ef3d
commit
6a09910dfc