junegunn / fzf.vim

fzf :heart: vim
MIT License
9.64k stars 584 forks source link

position of the syntax highlighting in the floating window is always offset #1096

Open gao634209276 opened 4 years ago

gao634209276 commented 4 years ago

The character position of the syntax highlighting in the floating window is always offset by 1 character. The error is shown in the above picture, who can fix it, thanks @blueyed @patheticpat @andreypopp @joshpencheon @mbudde

antoinemadec commented 4 years ago

@gao634209276 please provide a minimal testcase and more information to help us understand the issue:

gao634209276 commented 4 years ago

When I open nvim using the minimal configuration, I found that fzf preview highlighting works well...

Therefore, I excluded the setting options one by one, and finally found the cause of the problem, which is that the following setting items were configured

set ambiwidth=double

Thank you very much @antoinemadec