Fix regression with right click on main selection

(cherry picked from commit d59cdb8327)
This commit is contained in:
jmb462 2023-05-08 21:54:42 +02:00 committed by Rémi Verschelde
parent 53df7c18e0
commit f3b608d331
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -1816,7 +1816,7 @@ void ScriptTextEditor::_text_edit_gui_input(const Ref<InputEvent> &ev) {
} }
} }
} }
if (!caret_clicked) { if (caret_clicked < 0) {
tx->deselect(); tx->deselect();
tx->remove_secondary_carets(); tx->remove_secondary_carets();
caret_clicked = 0; caret_clicked = 0;