[PR #13353] [MERGED] [1.14] Fix moving selection past scroll area #29499

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

📋 Pull Request Information

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

Base: release-1.14 ← Head: dev/cazamor/1.14/bugfix-movePastBottom


📝 Commits (5)

  • 11acec2 Fix moving selection past scroll area
  • 5579452 only clamp Y-coord (and properly)
  • 2c9591a can't use til::point here
  • 420da5e clamp to the bottom right corner
  • c0dac92 derp

📊 Changes

1 file changed (+13 additions, -4 deletions)

View changed files

📝 src/cascadia/TerminalCore/TerminalSelection.cpp (+13 -4)

📄 Description

Summary of the Pull Request

1.14 port of #13318

Introduced in #10824, this fixes a bug where you could use keyboard selection to move below the scroll area. Instead, we now clamp movement to the mutable viewport (aka the scrollable area). Specifically, we only clamp the y-coordinate to make the experience similar to that of mouse selection.

Validation Steps Performed

✅ (no output) try to move past bottom of viewport
✅ (with output, at bottom of scroll area) try to move past viewport
✅ (with output, NOT at bottom of scroll area) try to move past viewport
✅ try to move past top of viewport


🔄 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/13353 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 6/21/2022 **Status:** ✅ Merged **Merged:** 6/22/2022 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `release-1.14` ← **Head:** `dev/cazamor/1.14/bugfix-movePastBottom` --- ### 📝 Commits (5) - [`11acec2`](https://github.com/microsoft/terminal/commit/11acec21e6a516ab18e0b21a92ebbc5ee3dc196c) Fix moving selection past scroll area - [`5579452`](https://github.com/microsoft/terminal/commit/5579452514b5d69e690eb7d101447cb65d2c56ed) only clamp Y-coord (and properly) - [`2c9591a`](https://github.com/microsoft/terminal/commit/2c9591a2ba4396d87a4d196827342ebf54337e5a) can't use til::point here - [`420da5e`](https://github.com/microsoft/terminal/commit/420da5e1b833e09f646b53c5037c3ea0931eb8cf) clamp to the bottom right corner - [`c0dac92`](https://github.com/microsoft/terminal/commit/c0dac92f0c4535c8539156c2c2f5f47c0413b99d) derp ### 📊 Changes **1 file changed** (+13 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalCore/TerminalSelection.cpp` (+13 -4) </details> ### 📄 Description ## Summary of the Pull Request 1.14 port of #13318 Introduced in #10824, this fixes a bug where you could use keyboard selection to move below the scroll area. Instead, we now clamp movement to the mutable viewport (aka the scrollable area). Specifically, we only clamp the y-coordinate to make the experience similar to that of mouse selection. ## Validation Steps Performed ✅ (no output) try to move past bottom of viewport ✅ (with output, at bottom of scroll area) try to move past viewport ✅ (with output, NOT at bottom of scroll area) try to move past viewport ✅ try to move past top of viewport --- <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:16 +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#29499