diff --git a/src/history.c b/src/history.c index dda273c94db16650f966861b9fd9c95f903ef19d..eea60119cb9acd5c8b5243b8457b9edd09c0bd80 100644 --- a/src/history.c +++ b/src/history.c @@ -401,9 +401,8 @@ void save_history(void) char *searchhist; FILE *hist; - /* If the histories are unchanged or empty, don't bother saving them. */ - if (!history_changed || (searchbot->lineno == 1 && - replacebot->lineno == 1 && executebot->lineno == 1)) + /* If the histories are unchanged, don't bother saving them. */ + if (!history_changed) return; searchhist = histfilename();