]> gitweb.factorcode.org Git - factor.git/commitdiff
ui.tools.listener: use ?first.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 17 Mar 2019 03:33:16 +0000 (20:33 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 17 Mar 2019 03:33:16 +0000 (20:33 -0700)
basis/ui/tools/listener/listener.factor

index 89fe0cd74ab012c09d2a8ad66614252c97abe2b6..6e56407301b3b3c129c64b15dd919dcd9191547f 100644 (file)
@@ -149,7 +149,7 @@ M: word (print-input)
     [ interactor-yield ] [ interactor-finish ] bi ;
 
 M: interactor stream-readln
-    interactor-read dup [ first ] when ;
+    interactor-read ?first ;
 
 : (call-listener) ( quot command listener -- )
     input>> dup interactor-busy? [ 3drop ] [