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

Everything on the left of the cursor is erased after selecting completion candidate #40

Closed
EgorDuplensky opened this issue Sep 10, 2020 · 5 comments

Comments

@EgorDuplensky
Copy link

For example i have something like this before the cursor (fzf-obc[master] is a prompt in this case):
fzf-obc[master]: git sta|
And after status is selected the result is just:
tus |
And when Enter being hit the correct git status command is executed.
The problem is reproduced without any bashrc except sourcing bash_completion.

@EgorDuplensky
Copy link
Author

EgorDuplensky commented Sep 10, 2020

Gif

gif

@rockandska
Copy link
Owner

Hi,

Does this behaviour is reproducible by executing this ?

echo -e "stage\nstash\nstatus" | fzf-tmux --height 40% --reverse

Does this behaviour is reproducible doing the same thing in a clean env ?

env -i PATH="${PATH}" bash --norc --noprofile
source /etc/bash_completion
source [path-to-fzf-obc]/bin/fzf-obc

Regards,

@EgorDuplensky
Copy link
Author

EgorDuplensky commented Sep 11, 2020

Yes, it is reproducible with clean env.
Actually it seems that problem exists only with suckless st terminal.
xfce4-terminal has no such issue. And somehow i missed that fzf itself has the same issue when running from st.
So i think the issue can be closed (any help with understanding why it does not work correctly is very appreciated :) )

@rockandska
Copy link
Owner

This behaviour need to be address directly to st who doesn't support redraw-current-line (cf this topic on [reddit])(https://www.reddit.com/r/suckless/comments/f9saa1/bind_e0n_in_st/)

@EgorDuplensky
Copy link
Author

Thank you.
Have to drop st to use your package.

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