little bugfix in command completion (thx dennis)
This commit is contained in:
parent
d3293ef3cb
commit
f279bcf8af
|
@ -408,9 +408,11 @@ 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)
|
||||||
message_buffer.delete(start_iter, end_iter)
|
if len(self.cmd_hits[room_jid]):
|
||||||
message_buffer.insert_at_cursor('/' + self.cmd_hits[room_jid][0])
|
message_buffer.delete(start_iter, end_iter)
|
||||||
self.last_key_tabs[room_jid] = True
|
message_buffer.insert_at_cursor('/' + \
|
||||||
|
self.cmd_hits[room_jid][0])
|
||||||
|
self.last_key_tabs[room_jid] = True
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# nick completion
|
# nick completion
|
||||||
|
|
Loading…
Reference in New Issue