1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 03:05:07 +00:00

GTextEditor: Move the cursor to column 0 after deleting a whole line

This commit is contained in:
Andreas Kling 2019-11-04 12:36:10 +01:00
parent 70fb92fa0e
commit f5c2ae1192

View file

@ -712,6 +712,7 @@ void GTextEditor::delete_current_line()
document().remove_line(m_cursor.line());
if (lines().is_empty())
document().append_line(make<GTextDocumentLine>(document()));
m_cursor.set_column(0);
update_content_size();
update();