Skip to content
Snippets Groups Projects
Commit b61c3769 authored by mae's avatar mae
Browse files

Fix findScope performance issue

Fixes the performance of large find scope selections. Try
Ctrl+A Ctrl+F in a large file and scroll.
parent ec223d68
No related branches found
No related tags found
No related merge requests found
......@@ -138,6 +138,9 @@ QPainterPath TextEditorOverlay::createSelectionPath(const QTextCursor &begin, co
QTextBlock block = begin.block();
if (block.blockNumber() < m_editor->firstVisibleBlock().blockNumber() - 4)
block = m_editor->document()->findBlockByNumber(m_editor->firstVisibleBlock().blockNumber() - 4);
bool inSelection = false;
QVector<QRectF> selection;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment