little bugfix in command completion (thx dennis)
This commit is contained in:
parent
d3293ef3cb
commit
f279bcf8af
1 changed files with 5 additions and 3 deletions
|
@ -408,8 +408,10 @@ class GroupchatWindow(chat.Chat):
|
||||||
for cmd in self.muc_cmds:
|
for cmd in self.muc_cmds:
|
||||||
if cmd.startswith(text.lstrip('/')):
|
if cmd.startswith(text.lstrip('/')):
|
||||||
self.cmd_hits[room_jid].append(cmd)
|
self.cmd_hits[room_jid].append(cmd)
|
||||||
|
if len(self.cmd_hits[room_jid]):
|
||||||
message_buffer.delete(start_iter, end_iter)
|
message_buffer.delete(start_iter, end_iter)
|
||||||
message_buffer.insert_at_cursor('/' + self.cmd_hits[room_jid][0])
|
message_buffer.insert_at_cursor('/' + \
|
||||||
|
self.cmd_hits[room_jid][0])
|
||||||
self.last_key_tabs[room_jid] = True
|
self.last_key_tabs[room_jid] = True
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue