Added BackwardsScanner::mid(tokenIndex). Mid() returns a substring starting from the position of the given token.

This commit is contained in:
Roberto Raggi
2009-09-21 17:38:25 +02:00
parent 41118d91fb
commit 42c676d19a
3 changed files with 9 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ QString ExpressionUnderCursor::operator()(const QTextCursor &cursor)
if (i == initialSize)
return QString();
return scanner.text(i);
return scanner.mid(i);
}
int ExpressionUnderCursor::startOfFunctionCall(const QTextCursor &cursor) const