From c394ef74104b9d832bafc8f07c74460df72ee01b Mon Sep 17 00:00:00 2001 From: hilfazer Date: Fri, 1 Nov 2019 14:52:13 +0100 Subject: $ autocompletion keeps quotation --- scene/gui/text_edit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 8cf6099279..6c55b8640e 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -6535,6 +6535,7 @@ void TextEdit::_update_completion_candidates() { if (inquote && restore_quotes == 1 && !option.display.is_quoted()) { String quote = single_quote ? "'" : "\""; option.display = option.display.quote(quote); + option.insert_text = option.insert_text.quote(quote); } if (option.display.begins_with(s)) { -- cgit v1.2.3