mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +00:00
LibGUI: Remove redundant cursor update
This commit is contained in:
parent
42133a196a
commit
ae51dea524
1 changed files with 0 additions and 1 deletions
|
@ -302,7 +302,6 @@ void EditingEngine::move_one_down(const KeyEvent& event)
|
||||||
}
|
}
|
||||||
TextPosition new_cursor;
|
TextPosition new_cursor;
|
||||||
if (m_editor->is_wrapping_enabled()) {
|
if (m_editor->is_wrapping_enabled()) {
|
||||||
new_cursor = m_editor->text_position_at_content_position(m_editor->cursor_content_rect().location().translated(0, m_editor->line_height()));
|
|
||||||
auto position_below = m_editor->cursor_content_rect().location().translated(0, m_editor->line_height());
|
auto position_below = m_editor->cursor_content_rect().location().translated(0, m_editor->line_height());
|
||||||
new_cursor = m_editor->text_position_at_content_position(position_below);
|
new_cursor = m_editor->text_position_at_content_position(position_below);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue