diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-13 21:49:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-13 21:49:06 +0200 |
commit | 14a2e598751405a99278d268b1b2ccdb0398826a (patch) | |
tree | b91fdc3d9f27b722563187d139f9c660deac463a /core/input | |
parent | 761eb7e06a25f61037ebbb62e57058c5ec2866a2 (diff) | |
parent | 81512a3732dd2cad3989fa94c0ec9261c6930030 (diff) |
Merge pull request #51642 from akien-mga/cleanup-use_single_quotes
Diffstat (limited to 'core/input')
-rw-r--r-- | core/input/input.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/input/input.cpp b/core/input/input.cpp index 8ba8b892ac..72563cc40a 100644 --- a/core/input/input.cpp +++ b/core/input/input.cpp @@ -163,8 +163,7 @@ void Input::_bind_methods() { void Input::get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const { #ifdef TOOLS_ENABLED - - const String quote_style = EDITOR_DEF("text_editor/completion/use_single_quotes", 0) ? "'" : "\""; + const String quote_style = EDITOR_GET("text_editor/completion/use_single_quotes") ? "'" : "\""; String pf = p_function; if (p_idx == 0 && (pf == "is_action_pressed" || pf == "action_press" || pf == "action_release" || @@ -180,7 +179,7 @@ void Input::get_argument_options(const StringName &p_function, int p_idx, List<S } String name = pi.name.substr(pi.name.find("/") + 1, pi.name.length()); - r_options->push_back(quote_style + name + quote_style); + r_options->push_back(name.quote(quote_style)); } } #endif |