diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-07-08 20:57:07 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-07-08 20:57:07 +0000 |
commit | 660ddf847fbb8b693223ba96e9f8f4e79d17fadc (patch) | |
tree | 0f84b26ab28851f8d3b0e8354ab1861762aa1c7e /src/window.py | |
parent | 640eb2498c5427119d9ab9dac1235881666b41ca (diff) | |
download | poezio-660ddf847fbb8b693223ba96e9f8f4e79d17fadc.tar.gz poezio-660ddf847fbb8b693223ba96e9f8f4e79d17fadc.tar.bz2 poezio-660ddf847fbb8b693223ba96e9f8f4e79d17fadc.tar.xz poezio-660ddf847fbb8b693223ba96e9f8f4e79d17fadc.zip |
Shift+TAB is used to complete recently said words. fixed #1563
Diffstat (limited to 'src/window.py')
-rw-r--r-- | src/window.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/window.py b/src/window.py index 7d8a5e60..8931ccac 100644 --- a/src/window.py +++ b/src/window.py @@ -549,8 +549,8 @@ class Input(Win): begin = self.text.split()[-1].encode('utf-8').lower() hit_list = [] # list of matching nicks for user in user_list: - if user.nick.lower().startswith(begin): - hit_list.append(user.nick) + if user.lower().startswith(begin): + hit_list.append(user) if len(hit_list) == 0: return self.last_key_tab = True @@ -577,8 +577,8 @@ class Input(Win): begin = self.text.split()[-1].encode('utf-8').lower() hit_list = [] # list of matching nicks for user in user_list: - if user.nick.lower().startswith(begin): - hit_list.append(user.nick) + if user.lower().startswith(begin): + hit_list.append(user) if len(hit_list) == 0: return end = False |