From 8f05c4f90fbc4068da04d9467f8d97e4bc89d890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D0=BD=D0=B4=D0=B0=D1=80=D0=B5=D0=B2=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD?= Date: Sun, 28 Jan 2018 15:26:28 +0100 Subject: [PATCH] update for fix #667 --- VisualPascalABCNET/IB/CodeCompletion/CodeCompletionActions.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)