diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2010-01-06 20:20:51 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2010-01-06 20:20:51 +0300 |
commit | b0e47b816021299e63344f520d7b74bcfff396f8 (patch) | |
tree | ea261f7c2cdbb50c0a065784d896a47dbb403f67 | |
parent | 4816c5245a280d88198566e6d1201cd3c118320a (diff) |
fix nick completion when gc_refer_to_nick_char contains a space. Fixes #5542
-rw-r--r-- | src/groupchat_control.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 8899cfb16..38a4973eb 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -1815,7 +1815,8 @@ class GroupchatControl(ChatControlBase): 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): + if gc_refer_to_nick_char and text.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 \ |