cmdline-hl.nvim icon indicating copy to clipboard operation
cmdline-hl.nvim copied to clipboard

fix(highlights): Fix support for Multibyte characters

Open LamprosPitsillos opened this issue 1 year ago • 1 comments

Trying to fix support for multibyte characters (utf8) as they don't get printed correctly. Having trouble with nil indexing inside the ts() function

image

LamprosPitsillos avatar Apr 22 '24 14:04 LamprosPitsillos

Having trouble with nil indexing inside the ts() function

Tree-sitter functions return byte positions, but ret has utf8-character positions. Using utf8 positions will also cause issues in draw_cmdline, because the cursor logic expects byte positions.

Sam-programs avatar Apr 22 '24 15:04 Sam-programs