fix nick completion when gc_refer_to_nick_char contains a space. Fixes #5542
This commit is contained in:
parent
0981c7759e
commit
b519116a2a
|
@ -1836,7 +1836,8 @@ class GroupchatControl(ChatControlBase):
|
||||||
after_nick_len = 1 # the space that is printed after we type [Tab]
|
after_nick_len = 1 # the space that is printed after we type [Tab]
|
||||||
|
|
||||||
# first part of this if : works fine even if refer_to_nick_char
|
# first part of this if : works fine even if refer_to_nick_char
|
||||||
if gc_refer_to_nick_char and begin.endswith(gc_refer_to_nick_char):
|
if gc_refer_to_nick_char and text.endswith(
|
||||||
|
gc_refer_to_nick_char + ' '):
|
||||||
with_refer_to_nick_char = True
|
with_refer_to_nick_char = True
|
||||||
after_nick_len = len(gc_refer_to_nick_char + ' ')
|
after_nick_len = len(gc_refer_to_nick_char + ' ')
|
||||||
if len(self.nick_hits) and self.last_key_tabs and \
|
if len(self.nick_hits) and self.last_key_tabs and \
|
||||||
|
|
Loading…
Reference in New Issue