diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp index aa98df48632..1c1747e095c 100644 --- a/src/plugins/texteditor/texteditor.cpp +++ b/src/plugins/texteditor/texteditor.cpp @@ -8236,7 +8236,7 @@ void TextEditorWidgetPrivate::addSearchResultsToScrollBar( } } else { m_highlightScrollBarController->addHighlight( - {category, block.blockNumber(), color, prio}); + {category, block.firstLineNumber(), color, prio}); } } }