1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Fixed ctrl + backspace on empty lines

Fix <word><space><caret> scenario

Fix move left & right for lines without words
This commit is contained in:
Marc Garcia Puig
2022-02-21 22:32:24 +01:00
parent c630c2001d
commit f22d257025
2 changed files with 42 additions and 22 deletions

View File

@@ -758,7 +758,7 @@ PackedInt32Array TextServer::shaped_text_get_word_breaks(const RID &p_shaped, in
int word_start = range.x;
int l_size = shaped_text_get_glyph_count(p_shaped);
const int l_size = shaped_text_get_glyph_count(p_shaped);
const Glyph *l_gl = const_cast<TextServer *>(this)->shaped_text_sort_logical(p_shaped);
for (int i = 0; i < l_size; i++) {