[PR #12700] [MERGED] Make conhost history deduplication case-sensitive #29194

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/12700
Author: @lhecker
Created: 3/15/2022
Status: Merged
Merged: 3/18/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/4186-case-sensitive-history


📝 Commits (2)

  • de8744a Make conhost history deduplication case-sensitive
  • 6556b66 Address feedback

📊 Changes

2 files changed (+7 additions, -15 deletions)

View changed files

📝 src/host/history.cpp (+2 -11)
📝 src/host/ut_host/CommandLineTests.cpp (+5 -4)

📄 Description

The legacy console used to use case-sensitive history deduplication and
this change reverts the logic to restore ye olde history functionality.

This commit additionally changes the other remaining std::equal plus
std::towlower check into a CompareStringOrdinal call,
just because that's what MSDN suggests to use in such situations.

PR Checklist

Validation Steps Performed

  • Enter test /v
  • Enter test /V
  • Browsing through the history yields both items

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/12700 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 3/15/2022 **Status:** ✅ Merged **Merged:** 3/18/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/4186-case-sensitive-history` --- ### 📝 Commits (2) - [`de8744a`](https://github.com/microsoft/terminal/commit/de8744acff240fb2be88484b110f2052a7b82b44) Make conhost history deduplication case-sensitive - [`6556b66`](https://github.com/microsoft/terminal/commit/6556b66b642fcb9bc497a59c05338a274255464e) Address feedback ### 📊 Changes **2 files changed** (+7 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `src/host/history.cpp` (+2 -11) 📝 `src/host/ut_host/CommandLineTests.cpp` (+5 -4) </details> ### 📄 Description The legacy console used to use case-sensitive history deduplication and this change reverts the logic to restore ye olde history functionality. This commit additionally changes the other remaining `std::equal` plus `std::towlower` check into a `CompareStringOrdinal` call, just because that's what MSDN suggests to use in such situations. ## PR Checklist * [x] Closes #4186 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * Enter `test /v` * Enter `test /V` * Browsing through the history yields both items ✅ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:33: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#29194