diff options
Diffstat (limited to 'LibGUI/GTextEditor.cpp')
-rw-r--r-- | LibGUI/GTextEditor.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/LibGUI/GTextEditor.cpp b/LibGUI/GTextEditor.cpp index 2f35fe9424..5aa9d1c9a3 100644 --- a/LibGUI/GTextEditor.cpp +++ b/LibGUI/GTextEditor.cpp @@ -238,11 +238,7 @@ Rect GTextEditor::line_content_rect(int line_index) const void GTextEditor::update_cursor() { - auto rect = line_widget_rect(m_cursor.line()); - dbgprintf("update_cursor: line_widget_rect: %s", rect.to_string().characters()); - rect.set_width(width()); - dbgprintf(", adjusted: %s\n", rect.to_string().characters()); - update(rect); + update(line_widget_rect(m_cursor.line())); } void GTextEditor::set_cursor(int line, int column) |