zed icon indicating copy to clipboard operation
zed copied to clipboard

Confusing cursor position on ligature fonts even when ligatures are disabled

Open zxaos opened this issue 1 year ago • 1 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

When advancing over a set of characters, sometimes zed will display a misleading or wrong character under the cursor.

Environment

Zed: v0.123.0 (Zed Dev) OS: macOS 14.2.1 Memory: 32 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

Here's screen recordings of me pressing right arrow 8 times.

Zed Mono (correct): ZedMono

Monaspace Neon: Note on the fourth keypress we get (* highlighted as one character On the fifth keypress we get * but it's instead incorrectly rendered over the d On the sixth keypress what was previously * now becomes d again in the same position. Monaspace Neon

This is really confusing when typing.

Notably, in my settings, these were set during the recording:

  "buffer_font_features": {
    "calt": false,
    "liga": false,
    "dlig": false,
    "ss01": false,
    "ss02": false,
    "ss03": false,
    "ss04": false,
    "ss05": false,
    "ss06": false,
    "ss07": false
  }

Although, for completeness, they were set to true when zed started up and I changed the afterward while trying to debug this.

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

zxaos avatar Feb 13 '24 04:02 zxaos

This might be related to githubnext/monaspace#132

zxaos avatar May 10 '24 15:05 zxaos