update for fix #667

This commit is contained in:
Бондарев Иван 2018-01-28 15:26:28 +01:00
parent ce80ce8dac
commit 8f05c4f90f

View file

@ -125,7 +125,9 @@ namespace VisualPascalABC
ccp = new CodeCompletionProvider();
string full_expr;
string expressionResult = FindFullExpression(textContent, textArea, out ccp.keyword, out full_expr);
if (ccp.keyword == KeywordKind.CommonKeyword)
if (expressionResult != null)
expressionResult = expressionResult.Trim();
if (ccp.keyword == KeywordKind.CommonKeyword && !expressionResult.Contains(" "))
return new List<Position>();
List<Position> poses = ccp.GetDefinition(full_expr, textArea.MotherTextEditorControl.FileName, textArea.Caret.Line, textArea.Caret.Column, only_check);
if (poses == null)