diff --git a/VisualPascalABCNET/IB/CodeCompletion/CodeCompletionActions.cs b/VisualPascalABCNET/IB/CodeCompletion/CodeCompletionActions.cs index 3f25c17b7..8d0b06363 100644 --- a/VisualPascalABCNET/IB/CodeCompletion/CodeCompletionActions.cs +++ b/VisualPascalABCNET/IB/CodeCompletion/CodeCompletionActions.cs @@ -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(); List poses = ccp.GetDefinition(full_expr, textArea.MotherTextEditorControl.FileName, textArea.Caret.Line, textArea.Caret.Column, only_check); if (poses == null)