From ffe524feef606ad354810f59a449abd34e611c23 Mon Sep 17 00:00:00 2001 From: slava Date: Sun, 5 Nov 2006 01:53:52 +0000 Subject: [PATCH] Don't add empty lines to history --- library/ui/text/interactor.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ui/text/interactor.factor b/library/ui/text/interactor.factor index 84b6f43611..27502bc2da 100644 --- a/library/ui/text/interactor.factor +++ b/library/ui/text/interactor.factor @@ -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) ;