Ticket #186: prompt fixups

TestCase:
 * Have a mc running where you have two different directories in each panel.
 * Tab, so that you are in the other panel.
 * Ctrl-O to go to subshell.
 * You see two different prompts printed next to each other.

Fix issue:
In function src/main.c:do_update_prompt(): added '\r\n' before show prompt.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2009-08-13 01:19:33 +03:00
parent a01eca0eee
commit 1a3e71c03c

View File

@ -325,7 +325,7 @@ void
do_update_prompt (void)
{
if (update_prompt) {
printf ("%s", subshell_prompt);
printf ("\r\n%s", subshell_prompt);
fflush (stdout);
update_prompt = 0;
}