Fixed scope calculation in code completion.

This commit is contained in:
Erik Verbruggen
2010-07-03 18:41:31 +02:00
parent 5d888caeb9
commit 45e12ccb42
2 changed files with 13 additions and 25 deletions

View File

@@ -94,7 +94,7 @@ protected:
unsigned endLine, endColumn;
_unit->getPosition(symbol->endOffset(), &endLine, &endColumn);
if (_line < endLine || (_line == endLine && _column < endColumn))
if (_line < endLine || (_line == endLine && _column <= endColumn))
_scope = scope;
}
}
@@ -148,6 +148,7 @@ protected:
{ return process(symbol); }
};
class DocumentDiagnosticClient : public DiagnosticClient
{
enum { MAX_MESSAGE_COUNT = 10 };