You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this issue is not a duplicate of #5033 despite the similar bug titles. When redrawing a multi-line prompt in this fashion, fish is positioning the prompt correctly, but failing to fully erase the old prompt. A simple fix is to put \033[J (the escape sequence for "clear to bottom of screen") at the beginning of your prompt, but I think fish should do that clearing automatically, because the current behavior of commandline -f repaint is very counterintuitive.
My steps to reproduce:
function fish_prompt; printf "["(pwd)"]\n> "; end
bind \cB 'cd ..; commandline -f repaint'
Then hit Ctrl-b. The prompt will now display
A fixed version of the same prompt that has no issues: function fish_prompt; printf "\033[J["(pwd)"]\n> "; end