diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 0c299875f..df4144510 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -518,9 +518,10 @@ namespace Flow.Launcher.ViewModel [RelayCommand] private void SelectPrevItem() { - if (_history.Items.Count > 0 - && QueryText == string.Empty - && QueryResultsSelected()) + if (QueryResultsSelected() // Results selected + && string.IsNullOrEmpty(QueryText) // No input + && Results.Visibility != Visibility.Visible // Results closed which means no items in Results + && _history.Items.Count > 0) // Have history items { lastHistoryIndex = 1; ReverseHistory();