diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-07-19 19:38:33 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-07-19 19:38:33 +0000 |
commit | e656e5924bef38d5e69fffca6e1d46c7bed69139 (patch) | |
tree | 34d5a397997a4d1bd0fbd0de660d7dc7b77ce287 /src/window.py | |
parent | 93351156a122dd7e374778c1c838b5c4c1dda83d (diff) | |
download | poezio-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.py | 5 |
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): |