From e656e5924bef38d5e69fffca6e1d46c7bed69139 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Mon, 19 Jul 2010 19:38:33 +0000 Subject: fixes some stuff. Also fixed #1617 --- src/window.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/window.py') diff --git a/src/window.py b/src/window.py index 833e77b7..8bef5a63 100644 --- a/src/window.py +++ b/src/window.py @@ -630,8 +630,9 @@ class Input(Win): self.text = u'' self.pos = 0 self.line_pos = 0 - self.history.append(txt) - self.histo_pos = len(self.history)-1 + if len(txt) != 0: + self.history.append(txt) + self.histo_pos = len(self.history)-1 return txt.encode('utf-8') def rewrite_text(self): -- cgit v1.2.3