Skip to content

Ligatures at the start of words break word selection #336

@w1ll-i-code

Description

@w1ll-i-code

Hi y'all.

I was trying out the example vello_editor and noticed some strange behavior: Most words are selected correctly on double-click, except the word finibus. In that case on double-click did not include the first letter of the word.

How to reproduce:

  • write finibus into the editor. alternatively fixxxx or flxxxxx
  • try selecting the text with a double-click

Here is what I have discovered so far:

  • It's only a problem with that word, I tried selecting all other words in the example and it works fine.
  • The problem is reproducible by typing finibus into another part of the editor and trying to select it again
  • It seems to be a problem with the character sequence fi specifically, but I also noticed it on fl while testing
  • This seems to only happen if the word starts with the characters, not if it's appears in or at the end of the word.
  • The behavior does not appear with Fi
  • Double-clicking on the f only selects that character

Tested with:

  • Fedora 41, last updated on 2024-04-13
  • Rust 1.86.0, both in debug and on release
  • commit: d53a058

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions