Fixup accept extra CR.

This commit is contained in:
Brad Nelson
2022-06-07 23:56:14 -07:00
parent 298de57027
commit f2948cee9b
3 changed files with 3 additions and 8 deletions

View File

@ -159,7 +159,7 @@ variable hld
( Input )
: raw.s depth 0 max for aft sp@ r@ cells - @ . then next ;
variable echo -1 echo ! variable arrow -1 arrow ! 0 value wascr
: *emit ( n -- ) dup emit 13 = if cr then ;
: *emit ( n -- ) dup 13 = if drop cr else emit then ;
: ?echo ( n -- ) echo @ if *emit else drop then ;
: ?arrow. arrow @ if >r >r raw.s r> r> ." --> " then ;
: *key ( -- n )