1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Overhaul TextEdit selection.

The caret is now a part of the selection.
This commit is contained in:
kit
2024-01-22 18:26:16 -05:00
parent 6118592c6d
commit 154f727c7a
11 changed files with 709 additions and 519 deletions

View File

@@ -531,7 +531,7 @@ void TextEditor::_text_edit_gui_input(const Ref<InputEvent> &ev) {
}
}
if (!tx->has_selection()) {
tx->set_caret_line(row, true, false);
tx->set_caret_line(row, true, false, -1);
tx->set_caret_column(col);
}
}