summaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.cpp
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2019-09-18 16:26:33 +0200
committerTomasz Chabora <kobewi4e@gmail.com>2019-09-18 16:26:33 +0200
commitd630472b9862d5c3fc8b13a5172ba67c5d065671 (patch)
treee6bd5fbec564215f7bf37e20dbd8c62b746a112c /scene/gui/text_edit.cpp
parent706f3d1aca7150dfa413fdd67abcdc9fccbd8a39 (diff)
Fix autocompletion undo
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r--scene/gui/text_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 7bcef5f9ab..1067e6a1fa 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -6247,7 +6247,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 == '(') {