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

Enabling scores causes the prompt to move if the line is too long #47

Closed
casr opened this issue Jul 23, 2017 · 2 comments
Closed

Enabling scores causes the prompt to move if the line is too long #47

casr opened this issue Jul 23, 2017 · 2 comments

Comments

@casr
Copy link
Contributor

casr commented Jul 23, 2017

Example command: echo $(find . | fzy -s)

If you run the above and one of the matches exceeds the length of the line then the prompt moves further down the terminal.

In normal operation (i.e. without -s) the line length is clipped to the columns on the display. When matches are enabled it seems that the extra space required to show scores was not factored into the line clipping algorithm.

Tested on MacOS 10.12.4, zsh 5.3.1 and fzy 0.9

@jhawthorn
Copy link
Owner

I believe this is fixed by #54. 🎉

Feel free to re-file if it is not

@casr
Copy link
Contributor Author

casr commented Oct 8, 2017

Yup, that appears to have to done it. Thanks @neuschaefer (and @jhawthorn for the tool in the first place ;) )!

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