diff options
author | jmb462 <jmb462@gmail.com> | 2023-05-08 21:54:42 +0200 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2023-05-12 12:07:02 +0200 |
commit | f3b608d33193b9761113017a1d025b2145bc5010 (patch) | |
tree | 7e50d81b1459e8755fee2200cd1450908c51fc0c | |
parent | 53df7c18e033dfe12a2136838602eb105d544168 (diff) |
Fix regression with right click on main selection
(cherry picked from commit d59cdb83275b353aa91d33ee98c2bb51353fd1f7)
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index d0364e4edd..7ff3d3e634 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -1816,7 +1816,7 @@ void ScriptTextEditor::_text_edit_gui_input(const Ref<InputEvent> &ev) { } } } - if (!caret_clicked) { + if (caret_clicked < 0) { tx->deselect(); tx->remove_secondary_carets(); caret_clicked = 0; |