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

Bash: Line wrapping issue #994

Closed
3 of 15 tasks
leonklingele opened this issue Jul 24, 2017 · 3 comments
Closed
3 of 15 tasks

Bash: Line wrapping issue #994

leonklingele opened this issue Jul 24, 2017 · 3 comments

Comments

@leonklingele
Copy link

leonklingele commented Jul 24, 2017

  • Category
    • fzf binary
    • fzf-tmux script
    • Key bindings
    • Completion
    • Vim
    • Neovim
    • Etc.
  • OS
    • Linux
    • Mac OS X
    • Windows
    • Windows Subsystem for Linux
    • Etc.
  • Shell
    • bash
    • zsh
    • fish

Steps to reproduce:

  1. Use bash with fzf
  2. Do an echo "abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc" (so you have that command in your bash history)
  3. export PS1="abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc"
  4. Activate fzf's reverse-i-search (Ctrl + r)
  5. Select the echo "abc .." line, press enter
  6. Bash prompt is wrapped incorrectly. After pressing enter in the last step, the cursor is placed at the very end of the line (right after the closing "), however there is more text on the right side of the cursor (after EOL).

Is that caused by fzf?

See this demonstration video: fzf bash line wrapping issue

EDIT: Filled out issue template. Sorry.

@junegunn
Copy link
Owner

It is probably a minor rendering bug of bash, and unfortunately there's not much we can do about it. Pressing CTRL-L clears the prompt when that happens.

@junegunn
Copy link
Owner

Possibly related: #681

@leonklingele
Copy link
Author

Yup, this is a duplicate of #681
Continuing the discussion over there.

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