[PR #11059] [MERGED] Update pattern locations again after scrolling #28387

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11059
Author: @zadjii-msft
Created: 8/26/2021
Status: Merged
Merged: 8/26/2021
Merged by: @undefined

Base: mainHead: dev/migrie/b/11055-urls-no-worky


📝 Commits (1)

  • c20eb9d This fixes the root cause of #11055, but the hover popup doesn't work after scrolling 😕

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 src/cascadia/TerminalControl/ControlCore.cpp (+2 -0)

📄 Description

This is on me. When I got rid of the _updatePatternLocations ThrottledFunc in the TermControl, I didn't add a matching call to _updatePatternLocations->Run() in this method.

In #9820, in TermControl::_ScrollPositionChanged, there was still a call to _updatePatternLocations->Run();. (TermControl.cpp:1655 on the right) https://github.com/microsoft/terminal/pull/9820/files#diff-c10bb023995e88dac6c1d786129284c454c2df739ea547ce462129dc86dc2697R1654

#10051 didn't change this

In #10187 I moved the _updatePatternLocations throttled func from termcontrol to controlcore. Places it existed before:

  • TermControl::_coreReceivedOutput: already matched by ControlCore::_connectionOutputHandler
  • TermControl::_ScrollbarChangeHandler -> added in c20eb9d
  • TermControl::_ScrollPositionChanged -> ControlCore::_terminalScrollPositionChanged

Validation Steps Performed

Print a URL, scroll the wheel: it still works.

Closes #11055


🔄 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/11059 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 8/26/2021 **Status:** ✅ Merged **Merged:** 8/26/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/11055-urls-no-worky` --- ### 📝 Commits (1) - [`c20eb9d`](https://github.com/microsoft/terminal/commit/c20eb9dad702f64d8354c818f3e67159629f0c3a) This fixes the root cause of #11055, but the hover popup doesn't work after scrolling 😕 ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/ControlCore.cpp` (+2 -0) </details> ### 📄 Description This is on me. When I got rid of the `_updatePatternLocations` `ThrottledFunc` in the `TermControl`, I didn't add a matching call to `_updatePatternLocations->Run()` in this method. In #9820, in `TermControl::_ScrollPositionChanged`, there was still a call to `_updatePatternLocations->Run();`. (TermControl.cpp:1655 on the right) https://github.com/microsoft/terminal/pull/9820/files#diff-c10bb023995e88dac6c1d786129284c454c2df739ea547ce462129dc86dc2697R1654 #10051 didn't change this In #10187 I moved the `_updatePatternLocations` throttled func from termcontrol to controlcore. Places it existed before: * [x] `TermControl::_coreReceivedOutput`: already matched by ControlCore::_connectionOutputHandler * [x] `TermControl::_ScrollbarChangeHandler` -> added in c20eb9d * [x] `TermControl::_ScrollPositionChanged` -> `ControlCore::_terminalScrollPositionChanged` ## Validation Steps Performed Print a URL, scroll the wheel: it still works. Closes #11055 --- <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:28:11 +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#28387