forked from qt-creator/qt-creator
Clang: fix experimantal follow symbol
...when the cursor points to the next token but the current one is selected. Change-Id: I73fe1b0c82ccda0489b878f3909b8767c54b5ec2 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -49,7 +49,7 @@ static bool findMark(const QVector<ClangBackEnd::TokenInfoContainer> &marks,
|
|||||||
return false;
|
return false;
|
||||||
if (curMark.column() == column)
|
if (curMark.column() == column)
|
||||||
return true;
|
return true;
|
||||||
if (curMark.column() < column && curMark.column() + curMark.length() >= column)
|
if (curMark.column() < column && curMark.column() + curMark.length() > column)
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user