From 85a6e4818060d07c0403f918a0e4fc157465382c Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Thu, 30 Jan 2014 15:33:19 -0800 Subject: [PATCH] Fix #99 --- autocomplete.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autocomplete.d b/autocomplete.d index 6d7bde8..fe0ee94 100644 --- a/autocomplete.d +++ b/autocomplete.d @@ -132,7 +132,7 @@ bool shouldSwapWithType(CompletionType completionType, CompletionKind kind, if (kind == CompletionKind.moduleName || kind == CompletionKind.packageName) return false; // Swap out every part of a chain with its type except the last part - if (current < max && completionType == CompletionType.location) + if (current < max) return true; // Only swap out types for these kinds immutable bool isInteresting =