Move check of no match

This commit is contained in:
George Fleming
2016-02-16 09:52:21 -08:00
parent 7648857c97
commit 70d42fc581
@@ -230,10 +230,11 @@ namespace Microsoft.PowerShell.Linux.Host
if (previousKeyPress.Key != ConsoleKey.Tab)
{
cmdCompleteOpt = CommandCompletion.CompleteInput(this.buffer.ToString(), this.current, options, powershell);
if (cmdCompleteOpt.CompletionMatches.Count == 0)
{
return;
}
}
if (cmdCompleteOpt.CompletionMatches.Count == 0)
{
return;
}
if (tabCompletionPos >= cmdCompleteOpt.CompletionMatches.Count)