QmlJS: Fix completion context when cursor is to the right of inserted ;

Done-with: Erik Verbruggen
This commit is contained in:
Christian Kamm
2010-04-30 14:22:55 +02:00
parent 0970a8e6d2
commit 44a155c612
4 changed files with 10 additions and 2 deletions

View File

@@ -31,6 +31,9 @@ CompletionContextFinder::CompletionContextFinder(const QTextCursor &cursor)
break;
}
if (m_startTokenIndex == yyLinizerState.tokens.size() - 1 && yyLinizerState.insertedSemicolon)
--m_startTokenIndex;
getQmlObjectTypeName(m_startTokenIndex);
checkBinding();
}