1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-03 11:50:27 +00:00

Fix indented line wrap with no spaces

This commit is contained in:
kit
2025-10-14 10:22:10 -04:00
parent fc7065d2b4
commit f336e019c0

View File

@@ -969,7 +969,7 @@ PackedInt32Array TextServer::shaped_text_get_line_breaks_adv(const RID &p_shaped
last_safe_break = i;
word_count++;
}
} else {
} else if (i >= indent_end) {
last_safe_break = i;
word_count++;
}
@@ -1153,7 +1153,7 @@ PackedInt32Array TextServer::shaped_text_get_line_breaks(const RID &p_shaped, do
last_safe_break = i;
word_count++;
}
} else {
} else if (i >= indent_end) {
last_safe_break = i;
word_count++;
}