[PR #14467] [MERGED] Harden against resizing down to 0 columns/rows #30108

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14467
Author: @lhecker
Created: 11/30/2022
Status: Merged
Merged: 12/9/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/14404-size-harden


📝 Commits (2)

  • 419cce2 Harden against resizing down to 0 columns/rows
  • 1137635 Merge remote-tracking branch 'origin/main' into dev/lhecker/14404-size-harden

📊 Changes

2 files changed (+19 additions, -6 deletions)

View changed files

📝 src/buffer/out/textBuffer.cpp (+10 -2)
📝 src/cascadia/PublicTerminalCore/HwndTerminal.cpp (+9 -4)

📄 Description

This changeset includes various guards against resizing the terminal down to 0
columns/rows: The 2 TextBuffer locations that accept new sizes, as well as
the HwndTerminal::Refresh which was the entrypoint causing the issue.

Closes #14404


🔄 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/14467 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 11/30/2022 **Status:** ✅ Merged **Merged:** 12/9/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/14404-size-harden` --- ### 📝 Commits (2) - [`419cce2`](https://github.com/microsoft/terminal/commit/419cce27c4f8c4e21ba5114ad5571f96e7b4ccc1) Harden against resizing down to 0 columns/rows - [`1137635`](https://github.com/microsoft/terminal/commit/113763571ed39f86d470acb4ce8cbd116b4c3552) Merge remote-tracking branch 'origin/main' into dev/lhecker/14404-size-harden ### 📊 Changes **2 files changed** (+19 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/buffer/out/textBuffer.cpp` (+10 -2) 📝 `src/cascadia/PublicTerminalCore/HwndTerminal.cpp` (+9 -4) </details> ### 📄 Description This changeset includes various guards against resizing the terminal down to 0 columns/rows: The 2 `TextBuffer` locations that accept new sizes, as well as the `HwndTerminal::Refresh` which was the entrypoint causing the issue. Closes #14404 --- <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:38:41 +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#30108