forked from qt-creator/qt-creator
		
	Fixed scope calculation in code completion.
This commit is contained in:
		| @@ -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 }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user