Commit 4e03a245 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: adjust two comments, and correct and a few cosmetic mistakes

Showing with 5 additions and 7 deletions
+5 -7
...@@ -1850,9 +1850,10 @@ void thanks_for_all_the_fish(void) ...@@ -1850,9 +1850,10 @@ void thanks_for_all_the_fish(void)
} }
#endif /* !DISABLE_COLOR */ #endif /* !DISABLE_COLOR */
#ifdef ENABLE_HISTORIES #ifdef ENABLE_HISTORIES
/* Free the search and replace history lists. */ /* Free the search, replace, and execute history lists. */
free_filestruct(searchtop); free_filestruct(searchtop);
free_filestruct(replacetop); free_filestruct(replacetop);
free_filestruct(executetop);
#endif #endif
/* Free the list of functions. */ /* Free the list of functions. */
while (allfuncs != NULL) { while (allfuncs != NULL) {
...@@ -1866,8 +1867,6 @@ void thanks_for_all_the_fish(void) ...@@ -1866,8 +1867,6 @@ void thanks_for_all_the_fish(void)
sclist = sclist->next; sclist = sclist->next;
free(s); free(s);
} }
#ifdef ENABLE_NANORC
free(homedir); free(homedir);
#endif
} }
#endif /* DEBUG */ #endif /* DEBUG */
...@@ -294,9 +294,9 @@ void load_history(void) ...@@ -294,9 +294,9 @@ void load_history(void)
strerror(errno)); strerror(errno));
} }
} else { } else {
/* Load the two history lists -- first the search history, then /* Load the three history lists -- first search, then replace,
* the replace history -- from the oldest entry to the newest. * then execute -- from oldest entry to newest. Between two
* The two lists are separated by an empty line. */ * lists there is an empty line. */
filestruct **history = &search_history; filestruct **history = &search_history;
char *line = NULL; char *line = NULL;
size_t buf_len = 0; size_t buf_len = 0;
......
...@@ -872,7 +872,6 @@ void pick_up_name(const char *kind, char *ptr, char **storage) ...@@ -872,7 +872,6 @@ void pick_up_name(const char *kind, char *ptr, char **storage)
} }
*storage = mallocstrcpy(*storage, ptr); *storage = mallocstrcpy(*storage, ptr);
} }
#endif /* !DISABLE_COLOR */ #endif /* !DISABLE_COLOR */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment