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

Weird characters after git stash #2329

Open
5 tasks done
Melandel opened this issue Jan 21, 2021 · 1 comment
Open
5 tasks done

Weird characters after git stash #2329

Melandel opened this issue Jan 21, 2021 · 1 comment
Labels

Comments

@Melandel
Copy link

Melandel commented Jan 21, 2021

  • 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
    • Windows
  • Shell
    • cmd.exe

Problem / Steps to reproduce

  • Start cmd.exe
  • Make sure you have a chcp 65001 for utf8
  • Go to a repository
  • Make a change in a file
  • run git stash
  • run git pop
  • run (git status --short) | fzf
  • I am seeing this:
    image

Even though git status --short itself works well.

Also, see this issue on fzf.vim: junegunn/fzf.vim#1227

@vovcacik
Copy link
Contributor

I have reproduced the issue. Either make your git to disable colors when outputting to pipe, or enable color support in fzf. Pick one:

  • git config --global color.status auto
  • git status --short | fzf.exe --ansi

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

No branches or pull requests

3 participants