Skip to content

Commit 30fee67

Browse files
committed
Merge pull request #113550 from bruvzg/rtl_rel_of
[RTL] Fix relative index getting out of sync.
2 parents 98954c5 + 3eaab68 commit 30fee67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scene/gui/rich_text_label.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4033,6 +4033,7 @@ void RichTextLabel::add_text(const String &p_text) {
40334033
//append text condition!
40344034
ItemText *ti = static_cast<ItemText *>(current->subitems.back()->get());
40354035
ti->text += line;
4036+
current_char_ofs += line.length();
40364037
_invalidate_current_line(main);
40374038

40384039
} else {

0 commit comments

Comments
 (0)