From f179cbdd2e76f5b9ddc19ca737199f873a0d5719 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sat, 14 Aug 2010 09:01:22 +0000 Subject: fix a crash on completion, fixed #1722 --- src/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 = '' -- cgit v1.2.3