Minor fix to prompt generation.
This commit is contained in:
parent
1ffb81b70b
commit
1e05134b47
1 changed files with 2 additions and 2 deletions
4
main.c
4
main.c
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue