Prevent error generates if Delete Line
used on last line in CodeEditor
(cherry picked from commit 7ccbf49bda
)
This commit is contained in:
parent
acd15e4cd2
commit
8519c803e4
@ -1227,7 +1227,9 @@ void CodeTextEditor::_delete_line(int p_line) {
|
|||||||
text_editor->cursor_set_column(0);
|
text_editor->cursor_set_column(0);
|
||||||
}
|
}
|
||||||
text_editor->backspace_at_cursor();
|
text_editor->backspace_at_cursor();
|
||||||
text_editor->unfold_line(p_line);
|
if (p_line < text_editor->get_line_count()) {
|
||||||
|
text_editor->unfold_line(p_line);
|
||||||
|
}
|
||||||
text_editor->cursor_set_line(p_line);
|
text_editor->cursor_set_line(p_line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user