From fce9a60f9a4b7ff7273e3351336ef5e268178ff3 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Wed, 12 Jan 2011 07:13:02 +0100 Subject: Fix M-b and M-f, fixed #2102 --- src/tabs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tabs.py') diff --git a/src/tabs.py b/src/tabs.py index e3418491..d1feffbb 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -37,6 +37,7 @@ import curses import difflib import shlex import text_buffer +import string from sleekxmpp.xmlstream.stanzabase import JID from config import config @@ -230,8 +231,7 @@ class ChatTab(Tab): Complete the input with words recently said """ # build the list of the recent words - char_we_dont_want = [',', '(', ')', '.', '"', '\'', ' ', # The last one is nbsp - '’', '“', '”', ':', ';', '[', ']', '{', '}'] + char_we_dont_want = string.punctuation+' ' words = list() for msg in self._room.messages[:-40:-1]: if not msg: -- cgit v1.2.3