[CMD] Improve how the command prompt displays when one presses Ctrl-C/break after having pressed ENTER, or after a command has been run.

This commit is contained in:
Hermès Bélusca-Maïto 2018-04-29 00:57:16 +02:00
parent a3b36f8d3e
commit 03c233bcd0
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 11 additions and 7 deletions

View file

@ -1418,16 +1418,14 @@ ReadLine(TCHAR *commandline, BOOL bMore)
return FALSE;
}
if (CheckCtrlBreak(BREAK_INPUT))
{
if (readline[0] == _T('\0'))
ConOutChar(_T('\n'));
if (CheckCtrlBreak(BREAK_INPUT))
return FALSE;
}
if (readline[0] == _T('\0'))
{
return FALSE;
}
ip = readline;
}