Pass caret index when deleting selection with backspace
Fixes and closes #67992
This commit is contained in:
parent
ec521a405a
commit
7127e57bf8
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue