fix a tb in TAB. thanks deluge
This commit is contained in:
parent
d5c5428b16
commit
0fb750e9c2
1 changed files with 29 additions and 27 deletions
|
@ -539,9 +539,11 @@ class GroupchatWindow(chat.Chat):
|
||||||
add = ' '
|
add = ' '
|
||||||
start_iter = end_iter.copy()
|
start_iter = end_iter.copy()
|
||||||
if self.last_key_tabs[room_jid] and begin.endswith(', '):
|
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]:
|
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:
|
else:
|
||||||
start_iter.backward_chars(len(begin))
|
start_iter.backward_chars(len(begin))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue