mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 17:15:08 +00:00
GTextEditor: Simplify update_cursor().
This commit is contained in:
parent
6a6bcc5daf
commit
77198ef735
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue