From 371c5da99c94e671c330f8067cb462e6928ec33b Mon Sep 17 00:00:00 2001 From: David Schulz Date: Wed, 11 May 2022 06:53:25 +0200 Subject: [PATCH] TextEditor: Fix local rename off by one Fixes: QTCREATORBUG-27531 Change-Id: Iaca7db227b9cbd563ac03260d668b93ea7328883 Reviewed-by: Reviewed-by: Christian Kandeler --- src/plugins/cppeditor/cppeditorwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cppeditor/cppeditorwidget.cpp b/src/plugins/cppeditor/cppeditorwidget.cpp index f75d05ffa42..62da35451aa 100644 --- a/src/plugins/cppeditor/cppeditorwidget.cpp +++ b/src/plugins/cppeditor/cppeditorwidget.cpp @@ -940,7 +940,7 @@ QList sourceLocationsToExtraSelections( selection.cursor = selectAt(cppEditorWidget->textCursor(), sourceLocation.targetLine, - sourceLocation.targetColumn, + sourceLocation.targetColumn + 1, selectionLength); selection.format = textCharFormat;