[PR #4523] [MERGED] Limit Concept of TextBuffer's Size in UIA #25806

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/4523
Author: @carlos-zamora
Created: 2/10/2020
Status: Merged
Merged: 2/10/2020
Merged by: @undefined

Base: masterHead: dev/cazamor/acc/define-last-char


📝 Commits (3)

  • 15751d0 Limit concept of text buffer size in UIA
  • bb237b7 Static analysis fix
  • 5f8cb9b fix minor exclusive/inclusive issue

📊 Changes

2 files changed (+44 additions, -17 deletions)

View changed files

📝 src/types/UiaTextRangeBase.cpp (+39 -13)
📝 src/types/UiaTextRangeBase.hpp (+5 -4)

📄 Description

Summary of the Pull Request

In UIA Providers, update the concept of the size of the text buffer to just go down to the virtual bottom. This significantly increases performance to the point that it can even be used in the Debug build.

PR Checklist

Detailed Description of the Pull Request / Additional comments

We already actually have this concept exposed to us via the IUiaData. So we're just leveraging that and putting it in a helper function _getBufferSize().

Validation Steps Performed

Tested word nav on Narrator (previously hung). Now it works on the Debug build. Previously, using the release build was necessary to be able to test this feature.


🔄 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/4523 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 2/10/2020 **Status:** ✅ Merged **Merged:** 2/10/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `dev/cazamor/acc/define-last-char` --- ### 📝 Commits (3) - [`15751d0`](https://github.com/microsoft/terminal/commit/15751d0fd844e9ea098e1e97a00b53f7d8140415) Limit concept of text buffer size in UIA - [`bb237b7`](https://github.com/microsoft/terminal/commit/bb237b767bdd8629188a7e67df740ecb6ecaee7b) Static analysis fix - [`5f8cb9b`](https://github.com/microsoft/terminal/commit/5f8cb9bec8aa5ed3f93d505295b21f60c5498dfb) fix minor exclusive/inclusive issue ### 📊 Changes **2 files changed** (+44 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `src/types/UiaTextRangeBase.cpp` (+39 -13) 📝 `src/types/UiaTextRangeBase.hpp` (+5 -4) </details> ### 📄 Description ## Summary of the Pull Request In UIA Providers, update the concept of the size of the text buffer to just go down to the virtual bottom. This significantly increases performance to the point that it can even be used in the Debug build. ## PR Checklist * [x] Closes #4485 * [x] CLA signed. ## Detailed Description of the Pull Request / Additional comments We already actually have this concept exposed to us via the IUiaData. So we're just leveraging that and putting it in a helper function `_getBufferSize()`. ## Validation Steps Performed Tested word nav on Narrator (previously hung). Now it works on the Debug build. Previously, using the release build was necessary to be able to test this feature. --- <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:11:54 +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#25806