]> gitweb.factorcode.org Git - factor.git/commitdiff
Don't add empty lines to history
authorslava <slava@factorcode.org>
Sun, 5 Nov 2006 01:53:52 +0000 (01:53 +0000)
committerslava <slava@factorcode.org>
Sun, 5 Nov 2006 01:53:52 +0000 (01:53 +0000)
library/ui/text/interactor.factor

index 84b6f43611ee7a236bf8d8825121e1e9d968a1e6..27502bc2daf6a8db4b5139fa28b61b5e478c14b4 100644 (file)
@@ -42,7 +42,7 @@ SYMBOL: structured-input
 
 : interactor-eval ( string interactor -- )
     dup control-model clear-doc
-    2dup interactor-history push-new
+    over empty? [ 2dup interactor-history push-new ] unless
     2dup interactor-input.
     (interactor-eval) ;