Merge pull request #4557 from Paulb23/autocomplete_truncate_issue_4554
Fixed autocomplete truncate, issue 4554
This commit is contained in:
commit
59e68ae6d0
1 changed files with 15 additions and 23 deletions
|
@ -1659,12 +1659,6 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
|
|||
|
||||
if (k.unicode>32) {
|
||||
|
||||
if (cursor.column<text[cursor.line].length() && text[cursor.line][cursor.column]==k.unicode) {
|
||||
//same char, move ahead
|
||||
cursor_set_column(cursor.column+1);
|
||||
|
||||
} else {
|
||||
//different char, go back
|
||||
const CharType chr[2] = {(CharType)k.unicode, 0};
|
||||
if(auto_brace_completion_enabled && _is_pair_symbol(chr[0])) {
|
||||
_consume_pair_symbol(chr[0]);
|
||||
|
@ -1686,8 +1680,6 @@ void TextEdit::_input_event(const InputEvent& p_input_event) {
|
|||
end_complex_operation();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_update_completion_candidates();
|
||||
accept_event();
|
||||
|
||||
|
|
Loading…
Reference in a new issue