summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.py')
-rw-r--r--src/window.py5
1 files changed, 3 insertions, 2 deletions
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):