Minor fix to prompt generation.

This commit is contained in:
Eric S. Raymond 2023-03-22 17:03:50 -04:00
parent 1ffb81b70b
commit 1e05134b47

4
main.c
View file

@ -82,9 +82,9 @@ char *myreadline(const char *prompt)
} else {
char *ln = fgets(buf, LINESIZE, settings.scriptfp);
if (ln != NULL) {
fputs(PROMPT, stdout);
fputs(prompt, stdout);
fputs(ln, stdout);
return ln;
return ln;
}
}
}