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:
David Schulz
2022-05-11 06:53:25 +02:00
parent 8479cb1514
commit 371c5da99c

View File

@@ -940,7 +940,7 @@ QList<QTextEdit::ExtraSelection> sourceLocationsToExtraSelections(
selection.cursor = selectAt(cppEditorWidget->textCursor(),
sourceLocation.targetLine,
sourceLocation.targetColumn,
sourceLocation.targetColumn + 1,
selectionLength);
selection.format = textCharFormat;