go to end iter after each print_special_text if we don't have an argument with the iter where we have to insert text. See #7372
This commit is contained in:
parent
49fec47f36
commit
f0d1282525
1 changed files with 2 additions and 0 deletions
|
@ -1095,6 +1095,8 @@ class ConversationTextview(GObject.GObject):
|
||||||
special_text = otext[start:end]
|
special_text = otext[start:end]
|
||||||
if start > index:
|
if start > index:
|
||||||
text_before_special_text = otext[index:start]
|
text_before_special_text = otext[index:start]
|
||||||
|
if not iter_:
|
||||||
|
end_iter = buffer_.get_end_iter()
|
||||||
# we insert normal text
|
# we insert normal text
|
||||||
if other_tags:
|
if other_tags:
|
||||||
insert_tags_func(end_iter, text_before_special_text, *other_tags)
|
insert_tags_func(end_iter, text_before_special_text, *other_tags)
|
||||||
|
|
Loading…
Add table
Reference in a new issue