From 319af866112d35dd65ab5c7fc9fe70310a4a7748 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 18 May 2004 18:45:05 +0000 Subject: Added a comment to resizehistents() to explain why the function is weirder than expected at first glance. --- Src/hist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Src/hist.c b/Src/hist.c index e0b0475fb..e0be6e030 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -1779,6 +1779,8 @@ void resizehistents(void) { if (histlinect > histsiz) { + /* The reason we don't just call freehistnode(hist_ring->down) is + * so that we can honor the HISTEXPIREDUPSFIRST setting. */ putoldhistentryontop(0); freehistnode((HashNode)hist_ring); while (histlinect > histsiz) { -- cgit 1.4.1