projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e8e089
)
Cosmetic fix: blank line before filename prompt...
author
Eric S. Raymond
<esr@thyrsus.com>
Sat, 10 Jun 2017 11:19:26 +0000
(07:19 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Sat, 10 Jun 2017 11:19:26 +0000
(07:19 -0400)
...in the style of the original.
saveresume.c
patch
|
blob
|
history
diff --git
a/saveresume.c
b/saveresume.c
index de3ebfe7980ed1c36121fa0a127e02be84b8e984..03b7490638ede110252e3bf26f0b76113b83a80b 100644
(file)
--- 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);