Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hyperlinks using an extra character at the end #17326

Merged
merged 2 commits into from
May 28, 2024

Conversation

tusharsnx
Copy link
Contributor

Closes: #17323

Validation Steps Performed

  • Run echo Hello ^(https://github.com/microsoft/terminal^) in cmd.
  • Ctrl+click on the URL opens https://github.com/microsoft/terminal in the browser.
  • Hovering over the url in the terminal shows https://github.com/microsoft/terminal in the hover UI.

Comment on lines +525 to +527
// GetPlainText works with inclusive coordinates, but interval's stop
// point is (horizontally) exclusive, so let's just update it.
result->stop.x--;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to other reviewers: This works because of line 1425 in Terminal::_getPatterns.

Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhh thank you

@DHowett DHowett added this pull request to the merge queue May 28, 2024
Merged via the queue into microsoft:main with commit 212f43e May 28, 2024
15 checks passed
@tusharsnx tusharsnx deleted the pattern-range-fix branch May 29, 2024 05:12
DHowett pushed a commit that referenced this pull request Jun 7, 2024
Closes: #17323

- Run `echo Hello ^(https://github.com/microsoft/terminal^)` in cmd.
- Ctrl+click on the URL opens `https://github.com/microsoft/terminal` in
the browser.
- Hovering over the url in the terminal shows
`https://github.com/microsoft/terminal` in the hover UI.

(cherry picked from commit 212f43e)
Service-Card-Id: 92637504
Service-Version: 1.20
DHowett pushed a commit that referenced this pull request Jun 7, 2024
Closes: #17323

## Validation Steps Performed
- Run `echo Hello ^(https://github.com/microsoft/terminal^)` in cmd.
- Ctrl+click on the URL opens `https://github.com/microsoft/terminal` in
the browser.
- Hovering over the url in the terminal shows
`https://github.com/microsoft/terminal` in the hover UI.

(cherry picked from commit 212f43e)
Service-Card-Id: 92637505
Service-Version: 1.21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Regression in launching links
3 participants