1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #89554 from smnast/backspace-unfold

Fix backspace always unfolding previous line
This commit is contained in:
Rémi Verschelde
2024-08-19 16:04:34 +02:00
2 changed files with 21 additions and 1 deletions

View File

@@ -765,7 +765,7 @@ void CodeEdit::_backspace_internal(int p_caret) {
continue;
}
if (to_line > 0 && _is_line_hidden(to_line - 1)) {
if (to_line > 0 && to_column == 0 && _is_line_hidden(to_line - 1)) {
unfold_line(to_line - 1);
}