Skip to content

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

@TehPers

Description

@TehPers

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

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

And again (no visual change):

image

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

This is with ss07 disabled:

image

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

329494799-dcef3275-d021-462a-8184-03bcf93fad8f

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

(I had originally posted about this in the Nerd Fonts repo related to a different issue I had come across, but this appears to be Monaspace.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions