summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Libraries/LibGUI/TextEditor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibGUI/TextEditor.cpp b/Libraries/LibGUI/TextEditor.cpp
index 746117446d..855ba58027 100644
--- a/Libraries/LibGUI/TextEditor.cpp
+++ b/Libraries/LibGUI/TextEditor.cpp
@@ -1032,7 +1032,8 @@ void TextEditor::scroll_position_into_view(const TextPosition& position)
void TextEditor::scroll_cursor_into_view()
{
- scroll_position_into_view(m_cursor);
+ if (!m_reflow_deferred)
+ scroll_position_into_view(m_cursor);
}
Gfx::Rect TextEditor::line_content_rect(size_t line_index) const