Fixed an issue that flattened a multi-line custom prompt into a single line, and cleaned up the prompt prefixing behavior.
The fish_prompt function is now copied via functions -c instead of by replacing the function name of the functions string output. (see here: http://ridiculousfish.com/shell/user_doc/html/commands.html#functions)
Also, _old_fish_prompt is called directly after the (virtualenv) prefix is printed, instead of being shoved into a %s with a printf. This does not change the behavior for the default prompt, but preserves the newlines of any user-defined custom prompt (e.g. mine). This also avoids some other weird behavior caused by the printf.
Fixed an issue that flattened a multi-line custom prompt into a singl…
…e line, and cleaned up the prompt prefixing behavior
Looks fine but I'm not a fish user so will have to test in a bit
@ryanartecona, what a baller.
The issue was re-reported on fish-shell issue tracker - fish-shell/fish-shell#1118. The fix looks fine in my opinion (actually, I planned to upload my own fix, but I noticed this issue just before I tried to).