Merge pull request #60890 from pfertyk/issue-60866-fix-backspace-selection-left

This commit is contained in:
Rémi Verschelde 2022-05-09 15:52:56 +02:00 committed by GitHub
commit 5013c1d5b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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