mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Move check of no match
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user