Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/groupchat_control.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/groupchat_control.py b/src/groupchat_control.py
index 209f78d65..8899cfb16 100644
--- a/src/groupchat_control.py
+++ b/src/groupchat_control.py
@@ -1812,12 +1812,14 @@ class GroupchatControl(ChatControlBase):
gc_refer_to_nick_char = gajim.config.get('gc_refer_to_nick_char')
with_refer_to_nick_char = False
+ 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
if gc_refer_to_nick_char and begin.endswith(gc_refer_to_nick_char):
with_refer_to_nick_char = True
+ after_nick_len = len(gc_refer_to_nick_char + ' ')
if len(self.nick_hits) and self.last_key_tabs and \
- text[:-len(gc_refer_to_nick_char + ' ')].endswith(self.nick_hits[0]):
+ text[:-after_nick_len].endswith(self.nick_hits[0]):
# we should cycle
# Previous nick in list may had a space inside, so we check text and
# not splitted_text and store it into 'begin' var