tweaks: elide an unneeded check

When history has changed, not all three listst can be empty.
This commit is contained in:
Benno Schulenberg 2017-09-17 12:37:17 +02:00
parent fb9c180bae
commit 1be8eb3b30

View File

@ -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();