diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-11-01 16:52:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-01 16:52:13 +0100 |
commit | 5160d4f5ba6f4f5988f42910a875e2bb8dc71deb (patch) | |
tree | 58c4af55e9773a2021236eb5c39556eeaca0e4a1 | |
parent | 15800b4db87f788f2229163592022dc743e9fde0 (diff) | |
parent | c394ef74104b9d832bafc8f07c74460df72ee01b (diff) |
Merge pull request #33233 from hilfazer/dollar-quoted-autocomplete
$ autocompletion keeps quotation
-rw-r--r-- | scene/gui/text_edit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 6d473b7939..5e6e038f38 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)) { |