mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
tweaks: elide an unneeded check
When history has changed, not all three listst can be empty.
This commit is contained in:
parent
fb9c180bae
commit
1be8eb3b30
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user