From d59cdb83275b353aa91d33ee98c2bb51353fd1f7 Mon Sep 17 00:00:00 2001 From: jmb462 Date: Mon, 8 May 2023 21:54:42 +0200 Subject: [PATCH] Fix regression with right click on main selection --- editor/plugins/script_text_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 978f1f56a5c..ba6c90d157f 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -1819,7 +1819,7 @@ void ScriptTextEditor::_text_edit_gui_input(const Ref &ev) { } } } - if (!caret_clicked) { + if (caret_clicked < 0) { tx->deselect(); tx->remove_secondary_carets(); caret_clicked = 0;