Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fzf mess the cmd screen when pressing Ctrl+p/Ctrl+n if a line has CJK character #2715

Open
5 of 10 tasks
jack6th opened this issue Jan 16, 2022 · 1 comment
Open
5 of 10 tasks

Comments

@jack6th
Copy link

jack6th commented Jan 16, 2022

  • I have read through the manual page (man fzf)
  • I have the latest version of fzf
  • I have searched through the existing issues

Info

  • OS
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Shell
    • bash
    • zsh
    • cmd

Problem / Steps to reproduce

  1. Create a test.cmd like below and save it with UTF-8 encoding.
@echo off
setlocal EnableDelayedExpansion
chcp 65001
set s=a汉字a
for /l %%I in (1,1,10) do (
  set "x="
  for /l %%i in (1,1,5) do (set x=!x!!s!&&echo !x!)
)
  1. open cmd and input
    test.cmd | fzf
  2. press Ctrl+p multiple times to go to the top.
  3. Now the cmd screen is full of mess with 汉 字
@junegunn
Copy link
Owner

junegunn commented Sep 1, 2024

I wonder if this is still an issue with the latest version of fzf.

Possibly related: 16f6473

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants