Skip to content
Snippets Groups Projects
Commit 5a7858f5 authored by Christian Kamm's avatar Christian Kamm
Browse files

Make sure the BackwardScanner has tokenized before asking for a string.

The problem was that for

Foo::Foo
(|)

when the user triggers completion at |, startOfLine() returns a token
that's not on the current line and not yet tokenized by that instance
of the BackwardScanner.

As a fix I explicitly ask the instance to tokenize up to the given
index.

Task-number: QTCREATORBUG-673
Reviewed-by: Roberto Raggi
parent 2b40ed69
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment