Commit 9c321dc7 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

More completion fixes.

parent c5148842
......@@ -161,7 +161,7 @@ int SimpleLexer::tokenBefore(const QList<Token> &tokens, unsigned offset)
{
for (int index = tokens.size() - 1; index >= 0; --index) {
const Token &tk = tokens.at(index);
if (tk.begin() < offset)
if (tk.begin() <= offset)
return index;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment