From: Kevin McCarthy Date: Sat, 13 May 2017 16:48:28 +0000 (-0700) Subject: Don't filter new entries when compacting history save file. X-Git-Tag: mutt-1-9-rel~84 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24a21418a5edc4aba09025e2516541a17cea3715;p=mutt Don't filter new entries when compacting history save file. If new entries are added between the two passes, they won't be in the dup_hash. The original intent was to filter added duplicates, but the check would also filter brand new entries. --- diff --git a/history.c b/history.c index ea9223e2..4e00384d 100644 --- a/history.c +++ b/history.c @@ -244,7 +244,7 @@ static void shrink_histfile (void) continue; *p = '\0'; if (option (OPTHISTREMOVEDUPS) && - (dup_hash_dec (dup_hashes[hclass], linebuf + read) != 0)) + (dup_hash_dec (dup_hashes[hclass], linebuf + read) > 0)) continue; *p = '|'; if (n[hclass]-- <= SaveHist)