summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-02-10 16:08:17 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-02-10 16:08:17 +0100
commitad7e9b749d509ccbb1c1676491e86b7b812b0298 (patch)
tree8947ea39521bbbefdd475908fe184aa6e95ae14a /src/tabs.py
parent23fa745629a56354f2b1f8e1cf768f4ff806e679 (diff)
downloadpoezio-ad7e9b749d509ccbb1c1676491e86b7b812b0298.tar.gz
poezio-ad7e9b749d509ccbb1c1676491e86b7b812b0298.tar.bz2
poezio-ad7e9b749d509ccbb1c1676491e86b7b812b0298.tar.xz
poezio-ad7e9b749d509ccbb1c1676491e86b7b812b0298.zip
/win completion and fix the return values of other completions
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tabs.py b/src/tabs.py
index e538c3a9..ecb53ab9 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -86,7 +86,7 @@ class Tab(object):
else: # Unknown command, cannot complete
return False
if command[2] is None:
- return False # There's no completion functio
+ return False # There's no completion function
else:
return command[2](the_input)
else:
@@ -283,7 +283,7 @@ class InfoTab(ChatTab):
self.tab_win.resize(1, self.width, self.height-2, 0, self.core.stdscr)
self.info_win.resize(self.height-2, self.width, 0, 0, self.core.stdscr)
self.input.resize(1, self.width, self.height-1, 0, self.core.stdscr)
-
+
def refresh(self, tabs, informations, _):
if not self.visible:
return
@@ -493,7 +493,7 @@ class MucTab(ChatTab):
def completion_topic(self, the_input):
current_topic = self.get_room().topic
- the_input.auto_completion([current_topic], ' ')
+ return the_input.auto_completion([current_topic], ' ')
def command_kick(self, arg):
"""
@@ -554,7 +554,7 @@ class MucTab(ChatTab):
self.core.information(_('%s is now unignored') % nick)
def completion_unignore(self, the_input):
- the_input.auto_completion([user.nick for user in self.ignores], ' ')
+ return the_input.auto_completion([user.nick for user in self.ignores], ' ')
def resize(self):
"""
@@ -872,7 +872,7 @@ class RosterInfoTab(Tab):
From with any JID presence in the roster
"""
jids = [contact.get_bare_jid() for contact in roster.get_contacts()]
- the_input.auto_completion(jids, '')
+ return the_input.auto_completion(jids, '')
def completion_deny(self, the_input):
"""
@@ -881,7 +881,7 @@ class RosterInfoTab(Tab):
"""
jids = [contact.get_bare_jid() for contact in roster.get_contacts()\
if contact.get_ask() == 'asked']
- the_input.auto_completion(jids, '')
+ return the_input.auto_completion(jids, '')
def command_accept(self, args):
"""