mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
GTextEditor: Simplify update_cursor().
This commit is contained in:
parent
6a6bcc5daf
commit
77198ef735
Notes:
sideshowbarker
2024-07-19 15:08:49 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/77198ef7359
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…
Reference in a new issue