Skip to content

Commit

Permalink
Fix backspace when selection reaches left edge
Browse files Browse the repository at this point in the history
  • Loading branch information
pfertyk committed May 9, 2022
1 parent 1199123 commit d1aed90
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 171 deletions.
2 changes: 1 addition & 1 deletion scene/gui/text_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
Loading

0 comments on commit d1aed90

Please sign in to comment.