Minor fix to prompt generation.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 22 Mar 2023 21:03:50 +0000 (17:03 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 22 Mar 2023 21:03:50 +0000 (17:03 -0400)
main.c

diff --git a/main.c b/main.c
index 7a6c6c868542fc55cbf0960bd02ce52f1bc1a161..b318cd0f5ce948593696bb3bbe3a4595ed33c24c 100644 (file)
--- a/main.c
+++ b/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;
             }
         }
     }