fzf icon indicating copy to clipboard operation
fzf copied to clipboard

Alt-C in Bash leaves extra blank spaces on command prompt

Open joliss opened this issue 1 year ago • 1 comments

Checklist

  • [X] I have read through the manual page (man fzf)
  • [X] I have searched through the existing issues
  • [X] For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.56.3 (add1aec6)

OS

  • [X] Linux
  • [ ] macOS
  • [ ] Windows
  • [ ] Etc.

Shell

  • [X] bash
  • [ ] zsh
  • [ ] fish

Problem / Steps to reproduce

The Alt+C shell feature in Bash leaves extra blank spaces on the command prompt after completing:

https://github.com/user-attachments/assets/6ffd0dc7-4078-42e2-9209-3457a4565af3

  • fzf 0.56.3 (add1aec6)
  • Bash 5.2.21(1)-release
  • Ubuntu Linux 24.04 (via SSH from macOS iTerm2)
  • I initialized shell integration with eval "$(fzf --bash)".
  • No FZF_* environment variables are set.

joliss avatar Dec 05 '24 22:12 joliss

I can't reproduce the problem. Can you check if you still have the problem on a clean bash environment?

env -i "PATH=$PATH" bash --noprofile --rcfile <(fzf --bash)

junegunn avatar Dec 10 '24 05:12 junegunn