Nvy icon indicating copy to clipboard operation
Nvy copied to clipboard

Some special characters break highlighting in statusline

Open EtiamNullam opened this issue 1 year ago • 1 comments

Having some "special" characters (for example from a nerd font) in statusline will lead to invalid colors across statusline.

Running exactly the same command, with the same version of Neovim (0.9.5), but with two versions of Nvy (top: 0.3.7, bottom: 0.3.6), leads to two different results:

image

The command should apply "function" highlight group to text "aaabbb":

:lua vim.o.statusline="%#function#aaabbb"

Seems like this bug was introduced in version 0.3.7 of Nvy, 0.3.6 is fine.

This problem is a bit broader for me as it affects both a bufferline plugin and a statusline plugin. This is my attempt to extract the problem so it can be reproduced without any plugins.

EtiamNullam avatar Jan 08 '24 03:01 EtiamNullam

Thanks for providing the command that causes the issue! Does this still happen in 0.3.9? I was trying to reproduce it but I wasn't able to.

Zorbn avatar May 12 '24 00:05 Zorbn

I can't seem to reproduce this, if it still happens please reopen the issue.

RMichelsen avatar Sep 03 '24 08:09 RMichelsen