Fixed ctrl + backspace on empty lines
Fix <word><space><caret> scenario Fix move left & right for lines without words
This commit is contained in:
parent
c630c2001d
commit
f22d257025
2 changed files with 42 additions and 22 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue