Skip to content

Ctrl+clicking URLs partially out of viewport not working as expected #18177

@JeffreyCA

Description

@JeffreyCA

Windows Terminal version

1.22.2912.0

Windows build number

10.0.22635.4445

Other Software

No response

Steps to reproduce

  1. Open Windows Terminal

  2. Resize Terminal window to a small size

  3. Press 'Enter' key until the active command prompt (with blinking cursor) reaches the last visible row in the window:
    Image

  4. Run a command with a long URL, like: echo 'https://github.com/microsoft/terminal/blob/main/src/cascadia/TerminalCore/lib/terminalcore-lib.vcxproj'

  5. Ensure the URL wraps to span 2 or more lines. If not, resize the window to reduce the width.
    Image

  6. Scroll up one line so that only the first line of the wrapped URL is visible: Image

  7. Ctrl+click the visible part of the URL

Expected Behavior

It should navigate to the full URL (https://github.com/microsoft/terminal/blob/main/src/cascadia/TerminalCore/lib/terminalcore-lib.vcxproj)

Actual Behavior

It navigates to the part of the URL that's visible (https://github.com/microsoft/terminal/bl), which is often invalid

Metadata

Metadata

Assignees

Labels

Area-InteractionInteracting with the vintage console window (as opposed to driving via API or hooks)Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions