summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.cpp
diff options
context:
space:
mode:
authorjmb462 <jmb462@gmail.com>2023-05-08 21:54:42 +0200
committerJean-Michel Bernard <jmb462@gmail.com>2023-05-08 21:56:16 +0200
commitd59cdb83275b353aa91d33ee98c2bb51353fd1f7 (patch)
treeda828fb0aeea5efbeba53e480149db78cea5c4fb /editor/plugins/script_text_editor.cpp
parentcf8ad12b56df4ae7bba4c73070dd035693a880e4 (diff)
downloadredot-engine-d59cdb83275b353aa91d33ee98c2bb51353fd1f7.tar.gz
Fix regression with right click on main selection
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r--editor/plugins/script_text_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp
index 978f1f56a5..ba6c90d157 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<InputEvent> &ev) {
}
}
}
- if (!caret_clicked) {
+ if (caret_clicked < 0) {
tx->deselect();
tx->remove_secondary_carets();
caret_clicked = 0;