Regression in launching links #21774

Closed
opened 2026-01-31 07:54:34 +00:00 by claunia · 6 comments
Owner

Originally created by @chrisant996 on GitHub (May 25, 2024).

Windows Terminal version

1.21.1272.0

Windows build number

19045.4412

Other Software

No response

Steps to reproduce

  1. Open a cmd.exe tab in Terminal.
  2. Run echo Hello ^(https://github.com/chrisant996/clink^).
  3. Move the mouse over the hyperlink -- observe that the hyperlink is underlined correctly.
  4. Ctrl+Click the hyperlink -- the ) is mistakenly included in the URL, and causes the web navigation to fail.

Expected Behavior

It should open the link https://github.com/chrisant996/clink.
It should open the same link that it underlined.
Terminal 1.19.11213.0 works correctly.

Actual Behavior

It opened the link https://github.com/chrisant996/clink) -- note that the ) was mistakenly included.
What it opens is different from what it underlined.

Originally created by @chrisant996 on GitHub (May 25, 2024). ### Windows Terminal version 1.21.1272.0 ### Windows build number 19045.4412 ### Other Software _No response_ ### Steps to reproduce 1. Open a cmd.exe tab in Terminal. 2. Run `echo Hello ^(https://github.com/chrisant996/clink^)`. 3. Move the mouse over the hyperlink -- observe that the hyperlink is underlined correctly. 4. Ctrl+Click the hyperlink -- the `)` is mistakenly included in the URL, and causes the web navigation to fail. ### Expected Behavior It should open the link `https://github.com/chrisant996/clink`. It should open the same link that it underlined. Terminal 1.19.11213.0 works correctly. ### Actual Behavior It opened the link `https://github.com/chrisant996/clink)` -- note that the `)` was mistakenly included. What it opens is different from what it underlined.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 07:54:34 +00:00
Author
Owner

@tusharsnx commented on GitHub (May 28, 2024):

Thanks for reporting this.

I believe result->stop is an exclusive coord, but it was passed down to the .GetPlainText() which expects inclusive coords:
5d1cf1a704/src/cascadia/TerminalCore/Terminal.cpp (L525)

On it.

@tusharsnx commented on GitHub (May 28, 2024): Thanks for reporting this. I believe `result->stop` is an exclusive coord, but it was passed down to the `.GetPlainText()` which expects inclusive coords: https://github.com/microsoft/terminal/blob/5d1cf1a704986808d09ae7729aaed39ce5d5f909/src/cascadia/TerminalCore/Terminal.cpp#L525 On it.
Author
Owner

@DHowett commented on GitHub (May 28, 2024):

@tusharsnx, @lhecker do either of you know if this will impact 1.20 as well?

@DHowett commented on GitHub (May 28, 2024): @tusharsnx, @lhecker do either of you know if this will impact 1.20 as well?
Author
Owner

@DHowett commented on GitHub (May 28, 2024):

Checked it out - yes, 1.20 is impacted. I'll service this.

Thanks @chrisant996 for the report!

@DHowett commented on GitHub (May 28, 2024): Checked it out - yes, 1.20 is impacted. I'll service this. Thanks @chrisant996 for the report!
Author
Owner

@chrisant996 commented on GitHub (May 28, 2024):

Ah, I see, yes it's fresh, introduced by 5b8eadb2ea a month ago. 👍

@chrisant996 commented on GitHub (May 28, 2024): Ah, I see, yes it's fresh, introduced by 5b8eadb2ea16206bac2bb1c0b06f35bd4d0aae15 a month ago. 👍
Author
Owner

@Psypher1 commented on GitHub (Jun 12, 2024):

Hello, I was told my issue #17424 is already being tracked here. My question; I see a merge was done. Does that mean I should update terminal to enact the changes? However the most recent release is still preview...

Because while the merge sort of handle a similar issue, it's not quite what I'm experiencing

@Psypher1 commented on GitHub (Jun 12, 2024): Hello, I was told my issue #17424 is already being tracked here. My question; I see a merge was done. Does that mean I should update terminal to enact the changes? However the most recent release is still preview... Because while the merge sort of handle a similar issue, it's not quite what I'm experiencing
Author
Owner

@lhecker commented on GitHub (Jun 18, 2024):

Preview will receive the fix sometime soon. Until then you can test out our nightly version here: https://aka.ms/terminal-canary-installer
Don't worry: If you uninstall it later, no traces will be left behind. :)

@lhecker commented on GitHub (Jun 18, 2024): Preview will receive the fix sometime soon. Until then you can test out our nightly version here: https://aka.ms/terminal-canary-installer Don't worry: If you uninstall it later, no traces will be left behind. :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21774