[PR #15105] [MERGED] Use new row primitives for ResizeTraditional #30423

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/15105
Author: @lhecker
Created: 4/4/2023
Status: Merged
Merged: 4/5/2023
Merged by: @zadjii-msft

Base: mainHead: dev/lhecker/8000-ResizeTraditional


📝 Commits (1)

  • 31a7b1c Use new row primitives for ResizeTraditional

📊 Changes

4 files changed (+73 additions, -188 deletions)

View changed files

📝 src/buffer/out/Row.cpp (+0 -85)
📝 src/buffer/out/Row.hpp (+1 -4)
📝 src/buffer/out/textBuffer.cpp (+70 -99)
📝 src/buffer/out/textBuffer.hpp (+2 -0)

📄 Description

This will allow us to share the same fundamental text insertion
logic for both ResizeTraditional and Reflow, because both
can be implemented with ROW::CopyRangeFrom. It also replaces
the BufferAllocator struct with a _allocateBuffer function
which will help us allocate scratch buffer rows in the future.

Closes #14696

PR Checklist

  • Disable reflow resize in conhost
  • Print "zhwik8.txt" - a enwik8.txt equivalent of Chinese Wikipedia
  • Run color 80 in cmd
  • Resize windows from 120 to 119 columns
  • Wide glyphs disappear and are replaced with whitespace
  • Resizing the window to >120 columns adds gray whitespace

🔄 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/15105 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 4/4/2023 **Status:** ✅ Merged **Merged:** 4/5/2023 **Merged by:** [@zadjii-msft](https://github.com/zadjii-msft) **Base:** `main` ← **Head:** `dev/lhecker/8000-ResizeTraditional` --- ### 📝 Commits (1) - [`31a7b1c`](https://github.com/microsoft/terminal/commit/31a7b1c4f47c678b89dbee9326f841e71e0a801e) Use new row primitives for ResizeTraditional ### 📊 Changes **4 files changed** (+73 additions, -188 deletions) <details> <summary>View changed files</summary> 📝 `src/buffer/out/Row.cpp` (+0 -85) 📝 `src/buffer/out/Row.hpp` (+1 -4) 📝 `src/buffer/out/textBuffer.cpp` (+70 -99) 📝 `src/buffer/out/textBuffer.hpp` (+2 -0) </details> ### 📄 Description This will allow us to share the same fundamental text insertion logic for both `ResizeTraditional` and `Reflow`, because both can be implemented with `ROW::CopyRangeFrom`. It also replaces the `BufferAllocator` struct with a `_allocateBuffer` function which will help us allocate scratch buffer rows in the future. Closes #14696 ## PR Checklist * Disable reflow resize in conhost * Print "zhwik8.txt" - a enwik8.txt equivalent of Chinese Wikipedia * Run `color 80` in cmd * Resize windows from 120 to 119 columns * Wide glyphs disappear and are replaced with whitespace ✅ * Resizing the window to >120 columns adds gray whitespace ✅ --- <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:40:45 +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#30423