From: Eric S. Raymond Date: Sat, 10 Jun 2017 11:19:26 +0000 (-0400) Subject: Cosmetic fix: blank line before filename prompt... X-Git-Tag: 1.1~455 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=62e1fddd1d2004160ce4cbd8dde2bd43ebe95c5f;p=open-adventure.git Cosmetic fix: blank line before filename prompt... ...in the style of the original. --- 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);