]> gitweb.factorcode.org Git - factor.git/commitdiff
infix: fix bug with recent locals refactor.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 9 Jun 2015 16:59:29 +0000 (09:59 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 9 Jun 2015 16:59:29 +0000 (09:59 -0700)
extra/infix/infix.factor

index b81dc1db62792642c23d9d1189a25cd7e71b484e..45ea18b12855130653f27e26d347f49e9793bdf2 100644 (file)
@@ -3,7 +3,7 @@
 USING: accessors assocs combinators effects effects.parser fry
 infix.ast infix.parser kernel locals locals.parser math
 math.functions math.order math.ranges multiline namespaces
-parser quotations sequences summary words ;
+parser quotations sequences summary vocabs.parser words ;
 IN: infix
 
 <PRIVATE
@@ -15,7 +15,8 @@ M: local-not-defined summary
     drop "local is not defined" ;
 
 : >local-word ( string -- word )
-    locals get ?at [ local-not-defined ] unless ;
+    qualified-vocabs last words>> ?at
+    [ local-not-defined ] unless ;
 
 ERROR: invalid-op string ;