gleam icon indicating copy to clipboard operation
gleam copied to clipboard

LSP ranges are incorrect when line contains multi-codepoint grapheme clusters

Open joshi-monster opened this issue 5 months ago • 3 comments

The string is "क्षि", or "\u{0915}\u{094D}\u{0937}\u{093F}".

image

From the looks of it it actually just uses the byte/code unit count.

Tested with Gleam v1.4.1, in VSCode, Zed and Helix :purple_heart:

joshi-monster avatar Sep 17 '24 20:09 joshi-monster