]> gitweb.factorcode.org Git - factor.git/commitdiff
don't assume world has children in debugger
authorJoe Groff <arcata@gmail.com>
Thu, 14 May 2009 15:08:57 +0000 (10:08 -0500)
committerJoe Groff <arcata@gmail.com>
Thu, 14 May 2009 15:08:57 +0000 (10:08 -0500)
basis/ui/tools/debugger/debugger.factor

index f3f533e68170b0587b4daaa4c18bc790f04ceec0..4d6960306cd75811f8a86fdb315b80d3ea604d8b 100755 (executable)
@@ -60,7 +60,7 @@ M: debugger focusable-child*
 
 GENERIC: error-in-debugger? ( error -- ? )
 
-M: world-error error-in-debugger? world>> gadget-child debugger? ;
+M: world-error error-in-debugger? world>> children>> [ f ] [ first debugger? ] if-empty ;
 
 M: object error-in-debugger? drop f ;