summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-14 09:01:22 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-14 09:01:22 +0000
commitf179cbdd2e76f5b9ddc19ca737199f873a0d5719 (patch)
treea8f037716d74059cce3e3b4689e10bc7df02e4e6
parent20b1f687642ee91a423204ee13e14161df3946dd (diff)
downloadpoezio-f179cbdd2e76f5b9ddc19ca737199f873a0d5719.tar.gz
poezio-f179cbdd2e76f5b9ddc19ca737199f873a0d5719.tar.bz2
poezio-f179cbdd2e76f5b9ddc19ca737199f873a0d5719.tar.xz
poezio-f179cbdd2e76f5b9ddc19ca737199f873a0d5719.zip
fix a crash on completion, fixed #1722
-rw-r--r--src/window.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.py b/src/window.py
index dd047335..7ba09b6c 100644
--- a/src/window.py
+++ b/src/window.py
@@ -584,7 +584,7 @@ class Input(Win):
(y, x) = self.win.getyx()
if not self.last_completion:
# begin is the begining of the nick we want to complete
- if self.text != '':
+ if self.text.strip() != '':
begin = self.text.split()[-1].encode('utf-8').lower()
else:
begin = ''