Merge pull request #32190 from KoBeWi/undo_redo_stuff

Fix autocompletion undo
This commit is contained in:
Rémi Verschelde 2019-09-20 17:22:11 +02:00 committed by GitHub
commit 48db920f4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6282,7 +6282,7 @@ void TextEdit::_confirm_completion() {
CharType last_completion_char = completion_current.insert_text[completion_current.insert_text.length() - 1];
if ((last_completion_char == '"' || last_completion_char == '\'') && last_completion_char == next_char) {
_base_remove_text(cursor.line, cursor.column, cursor.line, cursor.column + 1);
_remove_text(cursor.line, cursor.column, cursor.line, cursor.column + 1);
}
if (last_completion_char == '(') {