debug shell - print newline after control-D

This commit is contained in:
Kelvin Sherlock 2019-03-18 17:03:04 -04:00
parent 027689aea5
commit 7b9da08d72

View File

@ -1437,7 +1437,10 @@ int debug_shell(int code) {
for(;;) {
cp = x_readline("> ");
if (!cp) {
if (++control_d_count < 2) continue;
if (++control_d_count < 2) {
fputs("\n", stdout);
continue;
}
return 0;
}
control_d_count = 0;