WORDS no longer shows SMUDGED words
authorPhil Burk <philburk@google.com>
Thu, 17 Nov 2022 19:26:51 +0000 (19:26 +0000)
committerPhil Burk <philburk@mobileer.com>
Sat, 19 Nov 2022 01:29:52 +0000 (01:29 +0000)
fth/misc1.fth
fth/private.fth

index a90bf6f1a78475c086aac30384b3f031db5af605..e3fb5d80a3afa46f1691cf39486c389d601c364f 100644 (file)
@@ -100,13 +100,19 @@ variable TAB-WIDTH  8 TAB-WIDTH !
     tab-width @   swap - spaces
 ;
 
+$ 20 constant FLAG_SMUDGE
+
 \ Vocabulary listing
 : WORDS  ( -- )
     0 latest
     BEGIN  dup 0<>
-    WHILE  dup id. tab cr? ?pause
+    WHILE ( -- count NFA )
+        dup c@ flag_smudge and 0=
+        IF
+            dup id. tab cr? ?pause
+            swap 1+ swap
+        THEN
         prevname
-        swap 1+ swap
     REPEAT drop
     cr . ."  words" cr
 ;
index 6c0c55e107caeffbd9723ec81fe1a50f27b68f47..58c3c305fd0e5995b1b521071c574cef853cb4a0 100644 (file)
@@ -21,7 +21,6 @@ anew task-private.fth
 
 variable private-start
 variable private-stop
-$ 20 constant FLAG_SMUDGE
 
 : PRIVATE{
     private-start @ 0= not abort" ERROR: Missing PRIVATIZE"