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: neomutt-20170707^2^2~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e297455dd18d16a32fb5004fd7990380dcc20515;p=neomutt 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 ea9223e2a..4e00384d3 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)