githubnext / githubnext/monaspace

Triple-colon ligature in ss07 has odd cursor placement in specific scenarios

Open
#216 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Shell
Stars
19.6k
Forks
322
PR merge metrics
No merged PRs in 30d

Description

In `vscode`, the interaction between the triple-colon ligature from ss07 (`:::`) and red squigglies seems to cause issues with cursor placement. Under certain circumstances, the triple-colon ligature renders correctly, but the cursor treats it as two 1.5-wide colon characters and a single 0-width colon.

**I've observed this issue in v1.100 and v1.101, but not in v1.000.**

In this screenshot, the cursor is logically placed between the 1st and 2nd colon from the left, but visually appears in the middle of the 2nd colon:

![329493627-04b163af-7411-4df0-9cef-1e8a3ad1a0a5](https://github.com/githubnext/monaspace/assets/2214247/810f2309-d73c-47fd-98f2-14c8859ab3cf)

Moving the cursor right by 1 character places it at the end of the `:::`, and moving it right *again* doesn't visually move the cursor.

After moving it right once:

![image](https://github.com/githubnext/monaspace/assets/2214247/f9978787-ed0e-4cdf-bc74-de0be494ea86)

And again (no visual change):

![image](https://github.com/githubnext/monaspace/assets/2214247/c365cf97-5ecc-4ac9-b8d3-4fe53fb5b533)

It's also worth noting that this *only seems to happen* when red squigglies are involved on the right side of the triple-colon ligature:

![image](https://github.com/githubnext/monaspace/assets/2214247/49e0a023-67d1-428f-a484-7ef1ab328928)

This is with `ss07` disabled:

![image](https://github.com/githubnext/monaspace/assets/2214247/96c580f2-6f5a-492e-8fae-72f820b1e132)

This is from v1.000, which doesn't appear to have the ligature:

![329494799-dcef3275-d021-462a-8184-03bcf93fad8f](https://github.com/githubnext/monaspace/assets/2214247/e581e3e9-f14d-4fa2-8f73-cc94933da738)

Also, this seems to only happen with Monaspace's triple-colon ligature. Here's an example of how it looks with Fira Code and its ligatures enabled:

![329495443-6578aaf9-1d8a-484f-8470-42c74dd309f5](https://github.com/githubnext/monaspace/assets/2214247/b4610bf2-26dd-4895-859d-cee04f46d3a6)

*(I had [originally posted about this](https://github.com/ryanoasis/nerd-fonts/issues/1503#issuecomment-2103966045) in the Nerd Fonts repo related to a different issue I had come across, but this appears to be Monaspace.)*

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.