summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 3d38ec2b..4dc01316 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -1378,7 +1378,7 @@ class MucTab(ChatTab):
word_list = [user.nick for user in sorted(self.users, key=compare_users, reverse=True)\
if user.nick != self.own_nick]
after = config.get('after_completion', ',')+" "
- input_pos = self.input.pos + self.input.line_pos
+ input_pos = self.input.pos
if ' ' not in self.input.get_text()[:input_pos] or (self.input.last_completion and\
self.input.get_text()[:input_pos] == self.input.last_completion + after):
add_after = after
@@ -1936,7 +1936,7 @@ class PrivateTab(ChatTab):
word_list = [user.nick for user in sorted(self.parent_muc.users, key=compare_users, reverse=True)\
if user.nick != self.own_nick]
after = config.get('after_completion', ',')+" "
- input_pos = self.input.pos + self.input.line_pos
+ input_pos = self.input.pos
if ' ' not in self.input.get_text()[:input_pos] or (self.input.last_completion and\
self.input.get_text()[:input_pos] == self.input.last_completion + after):
add_after = after