Fix backspace when selection reaches left edge

Fixes #60866.
This commit is contained in:
Paweł Fertyk 2022-05-08 18:46:35 +02:00
parent 119912331c
commit d1aed90976
2 changed files with 192 additions and 171 deletions

View File

@ -2388,7 +2388,7 @@ void TextEdit::_move_caret_page_down(bool p_select) {
}
void TextEdit::_do_backspace(bool p_word, bool p_all_to_left) {
if (!editable || (caret.column == 0 && caret.line == 0)) {
if (!editable || (caret.column == 0 && caret.line == 0 && !has_selection())) {
return;
}

File diff suppressed because it is too large Load Diff