[PR #18139] Fix command history recall using DOWN ARROW #31458

Open
opened 2026-01-31 09:47:25 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18139

State: closed
Merged: No


Update the command history retrieval to support cyclic recall using the DOWN ARROW.

  • src/host/history.cpp

    • Update the Retrieve method to wrap around the command history when DOWN ARROW is pressed.
    • Update the RetrieveNth method to handle the wrap-around logic for cyclic recall of commands.
  • src/host/ut_host/HistoryTests.cpp

    • Add a unit test to verify the cyclic recall of commands using DOWN ARROW.

For more details, open the Copilot Workspace session.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/18139 **State:** closed **Merged:** No --- Update the command history retrieval to support cyclic recall using the DOWN ARROW. * **src/host/history.cpp** - Update the `Retrieve` method to wrap around the command history when `DOWN ARROW` is pressed. - Update the `RetrieveNth` method to handle the wrap-around logic for cyclic recall of commands. * **src/host/ut_host/HistoryTests.cpp** - Add a unit test to verify the cyclic recall of commands using `DOWN ARROW`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/terminal?shareId=07cc004d-44d6-4783-ae9d-854c10fd63c8).
claunia added the pull-request label 2026-01-31 09:47:25 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31458