mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #111648 from kitbdev/fix-indented-line-wrap-nobreaks
Fix indented line wrap with no spaces
This commit is contained in:
commit
003c7244b9
1 changed files with 2 additions and 2 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue