Merge pull request #68282 from alfredbaudisch/backspace-multi-care

Correctly deletes multi-caret selection with backspace
This commit is contained in:
Rémi Verschelde 2022-11-06 16:10:32 +01:00
commit cf1e6bb6fc
No known key found for this signature in database
GPG key ID: C3336907360768E1

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;
}