forked from qt-creator/qt-creator
TextEditor: Fix local rename off by one
Fixes: QTCREATORBUG-27531 Change-Id: Iaca7db227b9cbd563ac03260d668b93ea7328883 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -940,7 +940,7 @@ QList<QTextEdit::ExtraSelection> sourceLocationsToExtraSelections(
|
|||||||
|
|
||||||
selection.cursor = selectAt(cppEditorWidget->textCursor(),
|
selection.cursor = selectAt(cppEditorWidget->textCursor(),
|
||||||
sourceLocation.targetLine,
|
sourceLocation.targetLine,
|
||||||
sourceLocation.targetColumn,
|
sourceLocation.targetColumn + 1,
|
||||||
selectionLength);
|
selectionLength);
|
||||||
selection.format = textCharFormat;
|
selection.format = textCharFormat;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user