Browse Source

Fix regression with right click on main selection

(cherry picked from commit d59cdb83275b353aa91d33ee98c2bb51353fd1f7)
jmb462 2 years ago
parent
commit
f3b608d331
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/plugins/script_text_editor.cpp

+ 1 - 1
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;