Remember to honour the smudge bit.
authorDavid Given <dg@cowlark.com>
Mon, 24 Aug 2015 21:10:50 +0000 (23:10 +0200)
committerDavid Given <dg@cowlark.com>
Mon, 24 Aug 2015 21:10:50 +0000 (23:10 +0200)
All tests pass!

Applications/util/fforth.c

index 768ea50..a559d5b 100644 (file)
@@ -769,7 +769,9 @@ static void find_cb(cdefn_t* w)
 
        while (current)
        {
-               if (current->name && fstreq(name, current->name))
+               if (current->name
+                       && !(current->name->len & FL_SMUDGE)
+                       && fstreq(name, current->name))
                {
                        dpush((cell_t) current);
                        dpush((current->name->len & FL_IMMEDIATE) ? 1 : -1);