[PR #13318] [MERGED] Fix moving selection past scroll area #29478

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13318
Author: @carlos-zamora
Created: 6/17/2022
Status: Merged
Merged: 6/23/2022
Merged by: @undefined

Base: mainHead: dev/cazamor/kbd-sln/bugfix-movePastBottom


📝 Commits (4)

  • 1d21368 Fix moving selection past scroll area
  • ea6b000 only clamp Y-coord (and properly)
  • fd9ff02 move me to the corners
  • a451b2c use std::min

📊 Changes

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

View changed files

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

📄 Description

Summary of the Pull Request

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 clamp to the corners (i.e. 0,0 or bottom right cell of scroll area).

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/13318 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 6/17/2022 **Status:** ✅ Merged **Merged:** 6/23/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/cazamor/kbd-sln/bugfix-movePastBottom` --- ### 📝 Commits (4) - [`1d21368`](https://github.com/microsoft/terminal/commit/1d21368e6eb85748dd489648326242a1fd184fb1) Fix moving selection past scroll area - [`ea6b000`](https://github.com/microsoft/terminal/commit/ea6b0006631be7f69830a4836d48eda83b0a8045) only clamp Y-coord (and properly) - [`fd9ff02`](https://github.com/microsoft/terminal/commit/fd9ff02c18e43cd30286261df5de1c9fc3088467) move me to the corners - [`a451b2c`](https://github.com/microsoft/terminal/commit/a451b2c94a62a9a7e285673566006a2a8662925e) use std::min ### 📊 Changes **1 file changed** (+7 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalCore/TerminalSelection.cpp` (+7 -4) </details> ### 📄 Description ## Summary of the Pull Request 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 clamp to the corners (i.e. 0,0 or bottom right cell of scroll area). ## 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:09 +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#29478