Merge pull request #68282 from alfredbaudisch/backspace-multi-care
Correctly deletes multi-caret selection with backspace
This commit is contained in:
commit
cf1e6bb6fc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue