1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

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