diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-11-27 02:41:45 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-11-27 02:41:45 +0000 |
commit | 69e335c0ad073069291ef45a1fcfc2f1d6462309 (patch) | |
tree | c53b01befea20fafc94c5d31e0f284ec22a7654d /src | |
parent | 956a33f0d0f2fe799e3ba09f9e9cec9af6c41fc0 (diff) | |
download | poezio-69e335c0ad073069291ef45a1fcfc2f1d6462309.tar.gz poezio-69e335c0ad073069291ef45a1fcfc2f1d6462309.tar.bz2 poezio-69e335c0ad073069291ef45a1fcfc2f1d6462309.tar.xz poezio-69e335c0ad073069291ef45a1fcfc2f1d6462309.zip |
fix last_words_completion
Diffstat (limited to 'src')
-rw-r--r-- | src/tab.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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, ' ') |