diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-05 20:41:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 20:41:28 +0200 |
commit | 869a618e542252a42d0f5feab18a7916aec7109d (patch) | |
tree | 444381712ad15ff64f35e7f6bf2908f9594ec0ae | |
parent | 6afe9ad040c6f42fbebe2df0302b888122af7248 (diff) | |
parent | ced7d51e232560ddbb27d7428a47ba932eeb4746 (diff) |
Merge pull request #53438 from godotengine/fix-code-comple-end-key
-rw-r--r-- | scene/gui/code_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/code_edit.cpp b/scene/gui/code_edit.cpp index b816f12bc3..46ec7b4d3d 100644 --- a/scene/gui/code_edit.cpp +++ b/scene/gui/code_edit.cpp @@ -433,7 +433,7 @@ void CodeEdit::gui_input(const Ref<InputEvent> &p_gui_input) { return; } if (k->is_action("ui_end", true)) { - code_completion_current_selected = MIN(code_completion_options.size() - 1, code_completion_current_selected + code_completion_max_lines); + code_completion_current_selected = code_completion_options.size() - 1; update(); accept_event(); return; |