forked from qt-creator/qt-creator
Editor: Adjust remaining usages of BaseTextEditor:convertPosition
amends 9bb126c0d6
Change-Id: I42b96f1f7364f75da88eccd7a86fc25b9cd1499d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -378,7 +378,7 @@ void Manager::gotoLocations(const QList<QVariant> &list)
|
||||
int line;
|
||||
int column;
|
||||
textEditor->convertPosition(textEditor->position(), &line, &column);
|
||||
const SymbolLocation current(filePath, line, column);
|
||||
const SymbolLocation current(filePath, line, column + 1);
|
||||
if (auto it = locations.constFind(current), end = locations.constEnd(); it != end) {
|
||||
// we already are at the symbol, cycle to next location
|
||||
++it;
|
||||
|
||||
Reference in New Issue
Block a user