summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-19 19:38:33 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-07-19 19:38:33 +0000
commite656e5924bef38d5e69fffca6e1d46c7bed69139 (patch)
tree34d5a397997a4d1bd0fbd0de660d7dc7b77ce287 /src/window.py
parent93351156a122dd7e374778c1c838b5c4c1dda83d (diff)
downloadpoezio-e656e5924bef38d5e69fffca6e1d46c7bed69139.tar.gz
poezio-e656e5924bef38d5e69fffca6e1d46c7bed69139.tar.bz2
poezio-e656e5924bef38d5e69fffca6e1d46c7bed69139.tar.xz
poezio-e656e5924bef38d5e69fffca6e1d46c7bed69139.zip
fixes some stuff. Also fixed #1617
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):