]> gitweb.factorcode.org Git - factor.git/commitdiff
ui.tools.listener: call insert-newline directly.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 16 Oct 2011 20:39:15 +0000 (13:39 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 16 Oct 2011 20:39:15 +0000 (13:39 -0700)
basis/ui/tools/listener/listener.factor

index 0a24a00c250a50486379f678d77851bc6b8ad2c7..22d897238f863d30905b73811773c1df400fb1cf 100644 (file)
@@ -342,7 +342,7 @@ M: object accept-completion-hook 2drop ;
 : handle-interactive ( lines interactor -- quot/f ? )
     [ nip ] [ try-parse ] 2bi {
         { [ dup quotation? ] [ nip t ] }
-        { [ dup not ] [ drop "\n" swap user-input* drop f f ] }
+        { [ dup not ] [ drop insert-newline f f ] }
         [ handle-parse-error f f ]
     } cond ;