summaryrefslogtreecommitdiff
path: root/editor/plugins/text_shader_editor.cpp
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2022-06-08 22:41:38 +0100
committerPaulb23 <p_batty@hotmail.co.uk>2022-10-05 17:19:26 +0100
commit0cbe176ce635cb0b313d7ea21d287a6f82fb5fed (patch)
treecce62fbceb23106a97600741d0d66a30d261dfc4 /editor/plugins/text_shader_editor.cpp
parente9180241e8036e9938efe5380cedeffa5bf4c214 (diff)
Add multi caret support to Editor
Diffstat (limited to 'editor/plugins/text_shader_editor.cpp')
-rw-r--r--editor/plugins/text_shader_editor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/text_shader_editor.cpp b/editor/plugins/text_shader_editor.cpp
index dfd5e76ba6..ecbe1c078f 100644
--- a/editor/plugins/text_shader_editor.cpp
+++ b/editor/plugins/text_shader_editor.cpp
@@ -954,6 +954,7 @@ void TextShaderEditor::_text_edit_gui_input(const Ref<InputEvent> &ev) {
tx->set_move_caret_on_right_click_enabled(EditorSettings::get_singleton()->get("text_editor/behavior/navigation/move_caret_on_right_click"));
if (tx->is_move_caret_on_right_click_enabled()) {
+ tx->remove_secondary_carets();
if (tx->has_selection()) {
int from_line = tx->get_selection_from_line();
int to_line = tx->get_selection_to_line();