You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Prevent error generates if Delete Line used on last line in CodeEditor
This commit is contained in:
@@ -1302,7 +1302,9 @@ void CodeTextEditor::_delete_line(int p_line) {
|
||||
text_editor->set_caret_column(0);
|
||||
}
|
||||
text_editor->backspace();
|
||||
text_editor->unfold_line(p_line);
|
||||
if (p_line < text_editor->get_line_count()) {
|
||||
text_editor->unfold_line(p_line);
|
||||
}
|
||||
text_editor->set_caret_line(p_line);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user