Fix a traceback on completion_version
This commit is contained in:
parent
931835e22b
commit
8b50961de9
1 changed files with 1 additions and 1 deletions
|
@ -1595,7 +1595,7 @@ class Core(object):
|
||||||
n = len(the_input.get_text().split())
|
n = len(the_input.get_text().split())
|
||||||
if n > 2 or (n == 2 and the_input.get_text().endswith(' ')):
|
if n > 2 or (n == 2 and the_input.get_text().endswith(' ')):
|
||||||
return
|
return
|
||||||
comp = reduce(lambda x, y: x+y, (jid.resources for jid in roster if len(jid)), [])
|
comp = reduce(lambda x, y: x + [i for i in y], (jid.resources for jid in roster if len(jid)), [])
|
||||||
comp = (str(res.jid) for res in comp)
|
comp = (str(res.jid) for res in comp)
|
||||||
return the_input.auto_completion(sorted(comp), '', quotify=False)
|
return the_input.auto_completion(sorted(comp), '', quotify=False)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue