1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

LibGUI: Remove redundant cursor update

This commit is contained in:
Angus Gibson 2021-02-23 12:35:01 +11:00 committed by Andreas Kling
parent 42133a196a
commit ae51dea524

View file

@ -302,7 +302,6 @@ void EditingEngine::move_one_down(const KeyEvent& event)
}
TextPosition new_cursor;
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());
new_cursor = m_editor->text_position_at_content_position(position_below);
} else {