[PR #13372] [MERGED] [1.14] Properly fix keyboard sln at top/bot #29519

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13372
Author: @carlos-zamora
Created: 6/24/2022
Status: ✅ Merged
Merged: 6/30/2022
Merged by: @DHowett

Base: release-1.14 ← Head: dev/cazamor/1.14/top-bot-good-fix


📝 Commits (1)

  • b054603 [1.14] Properly fix keyboard sln at top/bot

📊 Changes

1 file changed (+6 additions, -12 deletions)

View changed files

📝 src/cascadia/TerminalCore/TerminalSelection.cpp (+6 -12)

📄 Description

A port of commit 0c5a1e9 from #13358.
This fixes an oversight from #13353. That ended up not fixing when trying to move past the top boundary.
This is also a better fix overall. By moving the fix to _MoveByChar, we have consistency between all the _MoveByX functions in that they automatically clamp to be within the scroll area.


🔄 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/13372 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 6/24/2022 **Status:** ✅ Merged **Merged:** 6/30/2022 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `release-1.14` ← **Head:** `dev/cazamor/1.14/top-bot-good-fix` --- ### 📝 Commits (1) - [`b054603`](https://github.com/microsoft/terminal/commit/b054603f8490899bba81b718e3d9e4d233f0aafa) [1.14] Properly fix keyboard sln at top/bot ### 📊 Changes **1 file changed** (+6 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalCore/TerminalSelection.cpp` (+6 -12) </details> ### 📄 Description A port of commit 0c5a1e9 from #13358. This fixes an oversight from #13353. That ended up not fixing when trying to move past the top boundary. This is also a better fix overall. By moving the fix to `_MoveByChar`, we have consistency between all the `_MoveByX` functions in that they automatically clamp to be within the scroll area. --- <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:35:24 +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#29519