summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2023-02-19 11:47:47 +0000
committerPaulb23 <p_batty@hotmail.co.uk>2023-02-19 12:04:14 +0000
commit60161cbe7d0033d8b705866bbd2107183c04da52 (patch)
tree1a30dba99887799b63b9705f956fde22afa32786 /scene/gui
parent9ad8dfa6cc1ce55adaabe5336fa2c52fdc74ed0f (diff)
Fix ctrl+backspace crash with multicarets on the same line
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 2b3b577697..ebca8296a0 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -2681,6 +2681,7 @@ void TextEdit::_do_backspace(bool p_word, bool p_all_to_left) {
set_caret_line(get_caret_line(caret_idx), false, true, 0, caret_idx);
set_caret_column(column, caret_idx == 0, caret_idx);
+ adjust_carets_after_edit(caret_idx, get_caret_line(caret_idx), column, get_caret_line(caret_idx), from_column);
// Now we can clean up the overlapping caret.
if (overlapping_caret_index != -1) {