fix a crash on completion, fixed #1722
This commit is contained in:
parent
20b1f68764
commit
f179cbdd2e
1 changed files with 1 additions and 1 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue