Skip to content
Snippets Groups Projects
Commit f279bcf8 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

little bugfix in command completion (thx dennis)

parent d3293ef3
No related branches found
No related tags found
No related merge requests found
......@@ -408,9 +408,11 @@ def on_message_textview_key_press_event(self, widget, event):
for cmd in self.muc_cmds:
if cmd.startswith(text.lstrip('/')):
self.cmd_hits[room_jid].append(cmd)
message_buffer.delete(start_iter, end_iter)
message_buffer.insert_at_cursor('/' + self.cmd_hits[room_jid][0])
self.last_key_tabs[room_jid] = True
if len(self.cmd_hits[room_jid]):
message_buffer.delete(start_iter, end_iter)
message_buffer.insert_at_cursor('/' + \
self.cmd_hits[room_jid][0])
self.last_key_tabs[room_jid] = True
return True
# nick completion
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment