Merge pull request #85363 from bruvzg/rtl_fx_nl

[RTL] Fix CharFX character offset calculation.
This commit is contained in:
Rémi Verschelde 2023-12-04 23:12:48 +01:00
commit 8580874d0f
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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) {