Skip to content

Links/URLs get offset when certain unicode characters are printed #8709

@Entrivax

Description

@Entrivax

Environment

Windows build number: Windows 10 version 2004 (10.0.19041.0)
Windows Terminal version: Preview 1.5.3242.0

Steps to reproduce

Print certain unicode characters like this one: 𝓐

Expected behavior

Links/URLs should be valid.

Actual behavior

Links/URLs get offset and break with the presence of certain unicode characters.
For example, if the following text is printed:

𝓐𝓐𝓐
https://microsoft.com/

image

The hoverable link, clickable link and opened link is ps://microsoft.com/
If those unicode characters are not printed (if you scroll for example), the links work again.

2021-01-05_22-44-13_kWeoQrwJie.mp4

Note that the emoji doesn't cause the issue.
The code used in the video is:

console.log(`𝓐𝓐𝓐𝓐𝓐𝓐 123 https://microsoft.com/

✨ https://google.com/
https://google.fr/
https://youtube.com/
https://aka.ms/`)

Metadata

Metadata

Assignees

Labels

Area-RenderingText rendering, emoji, complex glyph & font-fallback issuesArea-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Issue-BugIt either shouldn't be doing this or needs an investigation.Priority-2A description (P2)Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions