Skip to content

Commit c6d5525

Browse files
committed
Use predefined function
1 parent e67afcb commit c6d5525

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,7 @@ private void InitializeKeyCommands()
227227
&& !HistorySelected()
228228
&& !ContextMenuSelected())
229229
{
230-
ChangeQueryText(_history.Items[_history.Items.Count - 1].Query.ToString());
231-
// Set index to next item if user attempts to continue cycling history
232-
if (_history.Items.Count > 1)
233-
{
234-
lasthistoryindex++;
235-
}
236-
230+
ReverseHistory.Execute(null);
237231
}
238232
else
239233
{

0 commit comments

Comments
 (0)