diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-04 12:36:10 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-04 12:36:10 +0100 |
commit | f5c2ae11921f586b1e02b251fcfd341fcc986863 (patch) | |
tree | d7cfa2cebbcf4593d360c2899d46f6e28637fb74 /Libraries/LibGUI/GTextEditor.cpp | |
parent | 70fb92fa0e462feaac7e24e988f2ba367a883310 (diff) | |
download | serenity-f5c2ae11921f586b1e02b251fcfd341fcc986863.zip |
GTextEditor: Move the cursor to column 0 after deleting a whole line
Diffstat (limited to 'Libraries/LibGUI/GTextEditor.cpp')
-rw-r--r-- | Libraries/LibGUI/GTextEditor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<GTextDocumentLine>(document())); + m_cursor.set_column(0); update_content_size(); update(); |