Commit 1be8eb3b authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: elide an unneeded check

When history has changed, not all three listst can be empty.
No related merge requests found
Showing with 2 additions and 3 deletions
+2 -3
......@@ -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();
......
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