mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 04:34:26 +08:00
[fzf#vim#with_preview] Set --no-unicode if ambiwidth is 'double' (#1322)
Fix #1320 Append fzf argument `--no-unicode` when ambiwidth is `double` to keep the preview window rendering correctly.
This commit is contained in:
@@ -178,6 +178,9 @@ function! fzf#vim#with_preview(...)
|
||||
if len(placeholder)
|
||||
let preview += ['--preview', preview_cmd.' '.placeholder]
|
||||
end
|
||||
if &ambiwidth ==# 'double'
|
||||
let preview += ['--no-unicode']
|
||||
end
|
||||
|
||||
if len(args)
|
||||
call extend(preview, ['--bind', join(map(args, 'v:val.":toggle-preview"'), ',')])
|
||||
|
||||
Reference in New Issue
Block a user