mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
[TextServer] Fix get_word_breaks and it uses.
This commit is contained in:
parent
04a530f91f
commit
b5e3238109
5 changed files with 192 additions and 113 deletions
|
@ -840,7 +840,7 @@ void ScriptEditorDebugger::_set_reason_text(const String &p_reason, MessageType
|
|||
for (int i = 0; i < boundaries.size(); i += 2) {
|
||||
const int start = boundaries[i];
|
||||
const int end = boundaries[i + 1];
|
||||
lines.append(p_reason.substr(start, end - start + 1));
|
||||
lines.append(p_reason.substr(start, end - start));
|
||||
}
|
||||
|
||||
reason->set_tooltip_text(String("\n").join(lines));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue