[PR #13869] [MERGED] Discard empty command histories before discarding LRU non-empty ones #29797

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13869
Author: @serd2011
Created: 8/29/2022
Status: ✅ Merged
Merged: 8/31/2022
Merged by: @undefined

Base: main ← Head: fix13571


📝 Commits (2)

📊 Changes

1 file changed (+17 additions, -7 deletions)

View changed files

📝 src/host/history.cpp (+17 -7)

📄 Description

When selecting candidate history, priority is given to histories with empty commands list.

I think lazily calling s_Allocate will require a ton of rewriting. Also I think it is not an unexpended behavior that buffer is allocated when an application connects.

Closes #13571


🔄 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/13869 **Author:** [@serd2011](https://github.com/serd2011) **Created:** 8/29/2022 **Status:** ✅ Merged **Merged:** 8/31/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `fix13571` --- ### 📝 Commits (2) - [`0c7558a`](https://github.com/microsoft/terminal/commit/0c7558a9e2a6d9df611551981cffa8d1e230c50c) looks fine - [`029769f`](https://github.com/microsoft/terminal/commit/029769f6909c25d401a6dc5e001363b227e1cea4) fix spelling ### 📊 Changes **1 file changed** (+17 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/host/history.cpp` (+17 -7) </details> ### 📄 Description When selecting candidate history, priority is given to histories with empty commands list. I think lazily calling `s_Allocate` will require a ton of rewriting. Also I think it is not an unexpended behavior that buffer is allocated when an application connects. Closes #13571 --- <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:36:57 +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#29797