[TextServer] Fix get_word_breaks and it uses.

This commit is contained in:
bruvzg 2023-07-05 12:49:16 +03:00
parent 04a530f91f
commit b5e3238109
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
5 changed files with 192 additions and 113 deletions

View file

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