[PR #8422] Fix crash in SelectNextItem when list is empty or no item selected #27190

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

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

State: closed
Merged: Yes


PR Checklist

Detailed Description of the Pull Request / Additional comments

Skip further computations if:

  • The list is empty
  • No item is selected and we press "up" key
    (we do want to handle "down" key for CommandLineMode)

Validation Steps Performed

  • Manual testing + UT
**Original Pull Request:** https://github.com/microsoft/terminal/pull/8422 **State:** closed **Merged:** Yes --- ## PR Checklist * [x] Closes https://github.com/microsoft/terminal/issues/8421 * [x] CLA signed. * [x] Tests added/passed ## Detailed Description of the Pull Request / Additional comments Skip further computations if: * The list is empty * No item is selected and we press "up" key (we do want to handle "down" key for CommandLineMode) ## Validation Steps Performed * Manual testing + UT
claunia added the pull-request label 2026-01-31 09:20:33 +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#27190