2
0
mirror of https://github.com/godotengine/godot.git synced 2025-04-01 00:41:35 +08:00

Merge pull request 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

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