Hix a crash on last word completion
This commit is contained in:
parent
dca88cadbd
commit
3ad429f00b
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2010-2011 Le Coz Florent <louiz@louiz.org>
|
c# Copyright 2010-2011 Le Coz Florent <louiz@louiz.org>
|
||||||
#
|
#
|
||||||
# This file is part of Poezio.
|
# This file is part of Poezio.
|
||||||
#
|
#
|
||||||
|
@ -260,7 +260,7 @@ class ChatTab(Tab):
|
||||||
for msg in self._room.messages[:-40:-1]:
|
for msg in self._room.messages[:-40:-1]:
|
||||||
if not msg:
|
if not msg:
|
||||||
continue
|
continue
|
||||||
txt = msg.get('txt')
|
txt = msg.txt
|
||||||
for char in char_we_dont_want:
|
for char in char_we_dont_want:
|
||||||
txt = txt.replace(char, ' ')
|
txt = txt.replace(char, ' ')
|
||||||
for word in txt.split():
|
for word in txt.split():
|
||||||
|
|
Loading…
Reference in a new issue