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

Prompt gets displayed multiple times when on multiple line #149

Open
demodulatingswan opened this issue Oct 18, 2020 · 0 comments
Open

Prompt gets displayed multiple times when on multiple line #149

demodulatingswan opened this issue Oct 18, 2020 · 0 comments

Comments

@demodulatingswan
Copy link

To test fzy with the following prompt:

Make your choice!
> 

I execute the following command:

ls | fzy -p "$(printf 'Make your choice!\n> ')"

The first line of the prompt will appear multiple times with each interaction with fzy.

The intended behaviour should be close to, but not the same as:

echo 'Make your choice!' > /dev/tty; ls | fzy -p '> '

with the relevent difference being that the entire prompt should be erased at the end of execution, not just the last line.

I'll look at the code to see if I can fix this bug myself.

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

1 participant