fix a tb in TAB. thanks deluge

This commit is contained in:
Nikos Kouremenos 2005-09-07 17:08:32 +00:00
parent d5c5428b16
commit 0fb750e9c2

View file

@ -539,9 +539,11 @@ class GroupchatWindow(chat.Chat):
add = ' '
start_iter = end_iter.copy()
if self.last_key_tabs[room_jid] and begin.endswith(', '):
start_iter.backward_chars(len(begin) + 2) # have to accomodate for the added space from last completion
# have to accomodate for the added space from last completion
start_iter.backward_chars(len(begin) + 2)
elif self.last_key_tabs[room_jid]:
start_iter.backward_chars(len(begin) + 1) # have to accomodate for the added space from last completion
# have to accomodate for the added space from last completion
start_iter.backward_chars(len(begin) + 1)
else:
start_iter.backward_chars(len(begin))