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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user