From f5c2ae11921f586b1e02b251fcfd341fcc986863 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 4 Nov 2019 12:36:10 +0100 Subject: GTextEditor: Move the cursor to column 0 after deleting a whole line --- Libraries/LibGUI/GTextEditor.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Libraries') diff --git a/Libraries/LibGUI/GTextEditor.cpp b/Libraries/LibGUI/GTextEditor.cpp index 282b58d3a9..d6804fe54b 100644 --- a/Libraries/LibGUI/GTextEditor.cpp +++ b/Libraries/LibGUI/GTextEditor.cpp @@ -712,6 +712,7 @@ void GTextEditor::delete_current_line() document().remove_line(m_cursor.line()); if (lines().is_empty()) document().append_line(make(document())); + m_cursor.set_column(0); update_content_size(); update(); -- cgit v1.2.3