2
0
Эх сурвалжийг харах

Pass caret index when deleting selection with backspace

Fixes and closes #67992
Alfred Reinold Baudisch 2 жил өмнө
parent
commit
7127e57bf8

+ 2 - 2
scene/gui/code_edit.cpp

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