mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
GTextEditor: Move the cursor to column 0 after deleting a whole line
This commit is contained in:
parent
70fb92fa0e
commit
f5c2ae1192
Notes:
sideshowbarker
2024-07-19 18:31:02 +09:00
Author: https://github.com/awesomekling
Commit: f5c2ae1192
1 changed files with 1 additions and 0 deletions
|
@ -712,6 +712,7 @@ void GTextEditor::delete_current_line()
|
||||||
document().remove_line(m_cursor.line());
|
document().remove_line(m_cursor.line());
|
||||||
if (lines().is_empty())
|
if (lines().is_empty())
|
||||||
document().append_line(make<GTextDocumentLine>(document()));
|
document().append_line(make<GTextDocumentLine>(document()));
|
||||||
|
m_cursor.set_column(0);
|
||||||
|
|
||||||
update_content_size();
|
update_content_size();
|
||||||
update();
|
update();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue