From 1a3e71c03c321e48531dc2a432d5c076b7ed67a2 Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Thu, 13 Aug 2009 01:19:33 +0300 Subject: [PATCH] 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 --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index cd8a599f8..04f8d5a57 100644 --- a/src/main.c +++ b/src/main.c @@ -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; }