mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 23:17:44 +00:00
GTextEditor: Unbreak forward merge with Delete.
This commit is contained in:
parent
9867fe1025
commit
27b0aab13e
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ void GTextEditor::keydown_event(GKeyEvent& event)
|
||||||
update_cursor();
|
update_cursor();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (m_cursor.column() == (current_line().length() + 1) && m_cursor.line() != line_count() - 1) {
|
if (m_cursor.column() == current_line().length() && m_cursor.line() != line_count() - 1) {
|
||||||
// Delete at end of line; merge with next line
|
// Delete at end of line; merge with next line
|
||||||
auto& next_line = *m_lines[m_cursor.line() + 1];
|
auto& next_line = *m_lines[m_cursor.line() + 1];
|
||||||
int previous_length = current_line().length();
|
int previous_length = current_line().length();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue