Skip to content

issue on rendering (clearning) Chinese characters when switching files on Win-10 #1377

Open
@echaya

Description

@echaya

Hi please see the issue in GIF. Essentially when running :Rg command or :Files command (and others), switching from files that contains Chinese characters causes rendering issue that does not clear the Chinese characters from the screen.

chinese display

PS: I've tested on my 2 PCs running Win10Pro and Win10Home, both set CHCP = 65001 and vim, CMD, Powershell, Bash all set the font that supports Chinese. Plz let me know if anything else I could try. Thanks much in advance!

PS2: below is my fzf config, pretty standard I assume.

    "fzf config
    let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.9 } }
    let $FZF_DEFAULT_OPTS="--ansi --preview-window 'right:60%' --margin=1,4"
    let $PATH = "C:\\Program Files\\Git\\usr\\bin;" . $PATH
    "!! note: fd need to be installed separated before using in fd
    "ignored file search is configured @ c:\Users\xxx\AppData\Roaming\fd\ignore
    let $FZF_DEFAULT_COMMAND = 'fd --type f --color always'
    command! -bang -nargs=* Rg
      \ call fzf#vim#grep(
      \   'rg --column --line-number --no-heading --color=always --smart-case -- '.shellescape(<q-args>), 1,
      \   fzf#vim#with_preview(), <bang>0)
    nnoremap <Leader>/ :Rg<Space>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions