mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-24 20:22:11 +03:00
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:
parent
a01eca0eee
commit
1a3e71c03c
@ -325,7 +325,7 @@ void
|
|||||||
do_update_prompt (void)
|
do_update_prompt (void)
|
||||||
{
|
{
|
||||||
if (update_prompt) {
|
if (update_prompt) {
|
||||||
printf ("%s", subshell_prompt);
|
printf ("\r\n%s", subshell_prompt);
|
||||||
fflush (stdout);
|
fflush (stdout);
|
||||||
update_prompt = 0;
|
update_prompt = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user