Pass caret index when deleting selection with backspace

Fixes and closes #67992
This commit is contained in:
Alfred Reinold Baudisch 2022-11-05 08:55:01 +01:00
parent ec521a405a
commit 7127e57bf8

View file

@ -694,8 +694,8 @@ void CodeEdit::_backspace_internal(int p_caret) {
return;
}
if (has_selection()) {
delete_selection();
if (has_selection(p_caret)) {
delete_selection(p_caret);
return;
}