forked from qt-creator/qt-creator
TextEditor: Fix highlighting search results at block start
Fixes: QTCREATORBUG-25570 Change-Id: I3450cfed49e07cf96c2a2a9cdfa9a0be7a05c49f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -3673,7 +3673,7 @@ void TextEditorWidgetPrivate::highlightSearchResults(const QTextBlock &block, co
|
||||
QString text = block.text();
|
||||
text.replace(QChar::Nbsp, QLatin1Char(' '));
|
||||
int idx = -1;
|
||||
int l = 1;
|
||||
int l = 0;
|
||||
|
||||
const int left = data.viewportRect.left() - int(data.offset.x());
|
||||
const int right = data.viewportRect.right() - int(data.offset.x());
|
||||
|
Reference in New Issue
Block a user