diff --git a/src/prompt.c b/src/prompt.c index a198b19f..9e762070 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -507,7 +507,7 @@ functionptrtype acquire_an_answer(int *actual, bool *listed, if (history_list != NULL) { /* If we're scrolling up at the bottom of the history list * and answer isn't blank, save answer in magichistory. */ - if ((*history_list)->next == NULL && *answer != '\0') + if ((*history_list)->next == NULL) magichistory = mallocstrcpy(magichistory, answer); /* Get the older search from the history list and save it in