2016-01-12 Benno Schulenberg <bensberg@justemail.net>
* NEWS: Fix some typos and whitespace, and normalize the dates.
+ * src/files.c (load_poshistory): Rename a variable.
GNU nano 2.5.1 - 2016.01.11
/* Load the recorded file positions from ~/.nano/filepos_history. */
void load_poshistory(void)
{
- char *nanohist = poshistfilename();
+ char *poshist = poshistfilename();
/* Assume do_rcfile() has reported a missing home directory. */
- if (nanohist != NULL) {
- FILE *hist = fopen(nanohist, "rb");
+ if (poshist != NULL) {
+ FILE *hist = fopen(poshist, "rb");
if (hist == NULL) {
if (errno != ENOENT) {
/* Don't save history when we quit. */
UNSET(POS_HISTORY);
- history_error(N_("Error reading %s: %s"), nanohist,
+ history_error(N_("Error reading %s: %s"), poshist,
strerror(errno));
}
} else {
fclose(hist);
free(line);
}
- free(nanohist);
+ free(poshist);
}
}
#endif /* !DISABLE_HISTORIES */