[PR #4959] Make loop in IInputEvent more consistent and modern #26054

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

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

State: closed
Merged: Yes


In IInputEvent, there are two for loops. One is a range based loop operating on "records", and the other is a classic for-loop doing the same. For consistency, the for-loop was changed into the more modern variation via a compiler refactoring, which has the exact same behavior as the other for-loop in the main function.

Yes, of course this was tested manually and with the unit tests.

Validation Steps

Unit testing passed. In addition, for the manual validation tests, I compared the output for sample values between the two loops ensuring the same results.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/4959 **State:** closed **Merged:** Yes --- In IInputEvent, there are two for loops. One is a range based loop operating on "records", and the other is a classic for-loop doing the same. For consistency, the for-loop was changed into the more modern variation via a compiler refactoring, which has the exact same behavior as the other for-loop in the main function. Yes, of course this was tested manually and with the unit tests. # Validation Steps Unit testing passed. In addition, for the manual validation tests, I compared the output for sample values between the two loops ensuring the same results.
claunia added the pull-request label 2026-01-31 09:13:38 +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#26054