From 42e213368b5382bd3f39ab10fe147a088486523f Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Wed, 23 Sep 2026 03:50:06 -0700 Subject: fix a minor bug in consume-from this had been interfering with intended behavior when hitting EOF. the intent was that key returns 0, then word also returns 0, and finally interpret or the active transformation also notices it's supposed to exit. consume was leaving a stray value on the stack, which prevented all of that. with this, it should be possible to remove the magic-word end delimiters for the transformations. end of an era :) that'll happen in a followup CL. Force-Push: yes Change-Id: Ib87afcf9199cc982250c4e66761c5fb056164fb7 --- input.e | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input.e') diff --git a/input.e b/input.e index 41a2b8c..3d8fabb 100644 --- a/input.e +++ b/input.e @@ -102,7 +102,7 @@ ~ (metadata pointer --) : consume-from ~ If the length is zero, exit without doing anything. - dup buffer-logical-length @ 0 = { exit } if + dup buffer-logical-length @ 0 = { drop exit } if ~ Decrement the logical length. We do this now to get it over with, since ~ adjusting the start pointer is more complex. -- cgit 1.4.1