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
Buggy display when using Alt-l (__fish_list_current_token) #718
Comments
I'd like to see this fixed too. In fact I think it's better even with a single-line prompt. However, your fix doesn't work for me, which seems to be partially due to my complex prompt, but even if I use a simple multi-line prompt it still paints the first line of the prompt over the last line of the current token list. What seems to do the trick for me is to add an echo for each extra line in the prompt, after the
However, the above isn't sufficient for a three-line prompt, and for a one-line prompt it results in an extra empty line being printed. Perhaps a better fix would involve changes to |
So after writing the above I realized you probably weren't saying that your echo trick fixes the problems with multi-line prompts. Your second screenshot is with your rebinding, right? |
Actually, perhaps this could use |
The second screenshot is without any rebinding. I have the binding you mentioned, which works for two-line-prompts. But adds extra new-line to single-line prompt and as you say doesn't work for 3 line prompts for example. Inspecting the |
Is there a reason this hasn't been looked into for two years? If it's just an issue of finding someone to fix it, maybe I can take a crack at it? |
Yup, that's all. If it's biting you, go for it! |
If you have one line prompt it is kind of okay, but it would be better if the list started on the next line.
This can be solved like this, but would be good if it was default behavior.
However if you have a multi-line prompt it looks like this:
As you can see the prompt is covering the output which is not very useful.
The text was updated successfully, but these errors were encountered: