diff options
author | Paweł Fertyk <pfertyk@pfertyk.me> | 2022-05-08 18:46:35 +0200 |
---|---|---|
committer | Paweł Fertyk <pfertyk@pfertyk.me> | 2022-05-09 14:16:28 +0200 |
commit | d1aed90976732921aa3a98fccb32ac1e8425758a (patch) | |
tree | d56327b58d72df6127adb127c1a462d569a731e4 /scene/gui | |
parent | 119912331cf665a3cf4d0027d658f8b52425b7c7 (diff) |
Fix backspace when selection reaches left edge
Fixes #60866.
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 1a439a5c1d..d7a07454de 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -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; } |