2016-02-21 Benno Schulenberg <bensberg@justemail.net>
* src/files.c (input_tab): If the first Tab added the part that all
matches have in common, don't require a third Tab to show the list.
+ * scr/global.c (thanks_for_all_the_fish): Remove unneeded checks.
2016-02-20 Benno Schulenberg <bensberg@justemail.net>
* src/search.c (get_history_completion): Avoid leaking memory
#ifndef DISABLE_SPELLER
free(alt_speller);
#endif
- if (cutbuffer != NULL)
- free_filestruct(cutbuffer);
+ free_filestruct(cutbuffer);
#ifndef DISABLE_JUSTIFY
- if (jusbuffer != NULL)
- free_filestruct(jusbuffer);
+ free_filestruct(jusbuffer);
#endif
/* Free the memory associated with each open file buffer. */
if (openfile != NULL)
#endif /* !DISABLE_COLOR */
#ifndef DISABLE_HISTORIES
/* Free the search and replace history lists. */
- if (searchage != NULL)
- free_filestruct(searchage);
- if (replaceage != NULL)
- free_filestruct(replaceage);
+ free_filestruct(searchage);
+ free_filestruct(replaceage);
#endif
- /* Free the functions and shortcuts lists. */
+ /* Free the list of functions. */
while (allfuncs != NULL) {
subnfunc *f = allfuncs;
allfuncs = allfuncs->next;
free(f);
}
+ /* Free the list of shortcuts. */
while (sclist != NULL) {
sc *s = sclist;
sclist = sclist->next;