[PR #13097] [MERGED] Reduce integer type casts in VtEngine #29384

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13097
Author: @lhecker
Created: 5/13/2022
Status: Merged
Merged: 5/16/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/4015-split4


📝 Commits (1)

  • 745df69 Reduce integer type casts in VtEngine

📊 Changes

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

View changed files

📝 src/renderer/vt/paint.cpp (+17 -28)

📄 Description

This commit is one of the more difficult rewrites that were necessary as part
of #4015, but still simple enough that it can be done as a separate commit.
The search for the lastNonSpace was replaced with a simpler
std::string_view::find_last_not_of.

Validation Steps Performed

ConPTY appears to work


🔄 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/13097 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 5/13/2022 **Status:** ✅ Merged **Merged:** 5/16/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/4015-split4` --- ### 📝 Commits (1) - [`745df69`](https://github.com/microsoft/terminal/commit/745df69d7f661365ae0dfdcb3d80754621ea03b9) Reduce integer type casts in VtEngine ### 📊 Changes **1 file changed** (+17 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `src/renderer/vt/paint.cpp` (+17 -28) </details> ### 📄 Description This commit is one of the more difficult rewrites that were necessary as part of #4015, but still simple enough that it can be done as a separate commit. The search for the `lastNonSpace` was replaced with a simpler `std::string_view::find_last_not_of`. ## Validation Steps Performed ConPTY appears to work ✅ --- <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:34:35 +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#29384