From 62e1fddd1d2004160ce4cbd8dde2bd43ebe95c5f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 10 Jun 2017 07:19:26 -0400 Subject: [PATCH] Cosmetic fix: blank line before filename prompt... ...in the style of the original. --- saveresume.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/saveresume.c b/saveresume.c index de3ebfe..03b7490 100644 --- a/saveresume.c +++ b/saveresume.c @@ -53,7 +53,9 @@ int saveresume(FILE *input, bool resume) } while (fp == NULL) { - name = linenoise("File name: "); + name = linenoise("\nFile name: "); + if (name == NULL) + return(2000); fp = fopen(name,(resume ? READ_MODE : WRITE_MODE)); if (fp == NULL) printf("Can't open file %s, try again.\n", name); -- 2.31.1