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:
Ivan Donchevskii
2017-12-20 14:34:45 +01:00
parent cd194d1710
commit 4bdcb8064c

View File

@@ -49,7 +49,7 @@ static bool findMark(const QVector<ClangBackEnd::TokenInfoContainer> &marks,
return false;
if (curMark.column() == column)
return true;
if (curMark.column() < column && curMark.column() + curMark.length() >= column)
if (curMark.column() < column && curMark.column() + curMark.length() > column)
return true;
return false;
});