diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-07 13:23:17 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-07 13:23:17 +0100 |
commit | 77198ef735925d8b5a92c32ceb9b761cb7af8d54 (patch) | |
tree | 2bd54c75146b73b10b346526564cbdbb89130d65 /LibGUI | |
parent | 6a6bcc5daff79e4cbccb6d9a33a95a2e5a6911bf (diff) | |
download | serenity-77198ef735925d8b5a92c32ceb9b761cb7af8d54.zip |
GTextEditor: Simplify update_cursor().
Diffstat (limited to 'LibGUI')
-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) |