From 27b0aab13e00d621716b46f9360c77b5ad69cc59 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 7 Mar 2019 20:15:05 +0100 Subject: [PATCH] GTextEditor: Unbreak forward merge with Delete. --- LibGUI/GTextEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibGUI/GTextEditor.cpp b/LibGUI/GTextEditor.cpp index 247356a6a3c..fefc5d31800 100644 --- a/LibGUI/GTextEditor.cpp +++ b/LibGUI/GTextEditor.cpp @@ -279,7 +279,7 @@ void GTextEditor::keydown_event(GKeyEvent& event) update_cursor(); 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 auto& next_line = *m_lines[m_cursor.line() + 1]; int previous_length = current_line().length();