From 69e335c0ad073069291ef45a1fcfc2f1d6462309 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sat, 27 Nov 2010 02:41:45 +0000 Subject: [PATCH] fix last_words_completion --- src/tab.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tab.py b/src/tab.py index 0f2c8f6b..4a76fca4 100644 --- a/src/tab.py +++ b/src/tab.py @@ -271,9 +271,10 @@ class ChatTab(Tab): for msg in self._room.messages[:-40:-1]: if not msg: continue + txt = msg.txt for char in char_we_dont_want: - msg.txt = msg.txt.replace(char, ' ') - for word in msg.txt.split(): + txt = txt.replace(char, ' ') + for word in txt.split(): if len(word) >= 4 and word not in words: words.append(word) self.input.auto_completion(words, ' ')