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);
}
}