Mayil-AI-Sandbox / neovim_26160

Sandbox repository
Other
0 stars 0 forks source link

set emoji crashes nvim, listchars leadmultispace displays wrong symbols #1

Open NobleMathews opened 1 month ago

NobleMathews commented 1 month ago

hashtaghashtaghashtag Problem

I have this setting in my init file:

set listchars=tab:<->,eol:$,lead:-,leadmultispace:\|-->,trail:·,extends:>,precedes:<
set emoji

But when I have more than 1 space in front of a word, I get something like this with random kanji symbols:

![image](

The last time I know for sure that it worked was with NVIM v0.10.0-dev-e59cf3b3a I know it has been broken for at least a week now. I'm not sure when this error started.

When doing this manually and not loading it from a config file, doing :set emoji or :set noemoji sometimes crashes nvim

hashtaghashtaghashtag Steps to reproduce

  1. nvim --clean
  2. :set list
  3. :set listchars=tab:<->,eol:$,lead:-,leadmultispace:\|-->,trail:·,extends:>,precedes:<
  4. type some text, for example
    f
    f    f
    f    
  5. :set emoji

You will then either get a segfault or the leadmultispace characters are displayed with random symbols.

[![asciicast](

hashtaghashtaghashtag Expected behavior

hashtaghashtaghashtag Neovim version (nvim -v)

NVIM v0.10.0-dev-8c6b0a5f2

hashtaghashtaghashtag Vim (not Nvim) behaves the same?

no

hashtaghashtaghashtag Operating system/version

Ubuntu Mate 22.04

hashtaghashtaghashtag Terminal name/version

kitty 0.30.1

hashtaghashtaghashtag $TERM environment variable

xterm-kitty

hashtaghashtaghashtag Installation

built from repo

mayil-ai[bot] commented 1 month ago

Here are some code snippets that may help you get started:

Doesn't seem like we have fully grasped all the specifics of this ticket.

Last updated at 27-Sep-2024 06:30 AM | Attempt 2