From a460bd1637f1d4b88200829feafb6ac446ae2171 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Wed, 14 Jan 2015 15:44:29 -0800 Subject: [PATCH] Made this code consistent with the rest --- src/autocomplete.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/autocomplete.d b/src/autocomplete.d index 68d008ad..9f80088e 100644 --- a/src/autocomplete.d +++ b/src/autocomplete.d @@ -698,9 +698,9 @@ ACSymbol*[] getSymbolsByTokenChain(T)(Scope* completionScope, tokens.length - 1)) { symbols = symbols[0].type is null ? [] : [symbols[0].type]; + if (symbols.length == 0) + break loop; } - if (symbols.length == 0) - break loop; if (symbols[0].kind == CompletionKind.aliasName && (completionType == CompletionType.identifiers || i + 1 < tokens.length))