Skip to content

Commit

Permalink
Merge pull request #85363 from bruvzg/rtl_fx_nl
Browse files Browse the repository at this point in the history
[RTL] Fix CharFX character offset calculation.
  • Loading branch information
akien-mga committed Dec 4, 2023
2 parents 3e7cc5e + 7a59efa commit 8580874
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/gui/rich_text_label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3121,6 +3121,8 @@ void RichTextLabel::_add_item(Item *p_item, bool p_enter, bool p_ensure_newline)
current_char_ofs += t->text.length();
} else if (p_item->type == ITEM_IMAGE) {
current_char_ofs++;
} else if (p_item->type == ITEM_NEWLINE) {
current_char_ofs++;
}

if (p_enter) {
Expand Down

0 comments on commit 8580874

Please sign in to comment.