per DB's patch, show the "Press Return To Continue" prompt if we can't

read the .nano_history file while starting nano


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1896 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
David Lawrence Ramsey
2004-08-12 15:20:14 +00:00
parent 69a28122c1
commit 7dfec43f42
2 changed files with 6 additions and 2 deletions

View File

@@ -2943,6 +2943,9 @@ void load_history(void)
/* Don't save history when we quit. */
UNSET(HISTORYLOG);
rcfile_error(N_("Error reading %s: %s"), nanohist, strerror(errno));
fprintf(stderr, _("\nPress Return to continue starting nano\n"));
while (getchar() != '\n')
;
}
free(nanohist);
} else {