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

fix traceback with bash completion

parent d6f42411
No related branches found
No related tags found
No related merge requests found
......@@ -1844,8 +1844,8 @@ class GroupchatControl(ChatControlBase):
else:
add = ' '
start_iter = end_iter.copy()
if self.last_key_tabs and with_refer_to_nick_char or \
text[-1] == ' ':
if self.last_key_tabs and with_refer_to_nick_char or (text and \
text[-1] == ' '):
# have to accomodate for the added space from last
# completion
# gc_refer_to_nick_char may be more than one char!
......
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