summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2004-05-18 18:45:05 +0000
committerWayne Davison <wayned@users.sourceforge.net>2004-05-18 18:45:05 +0000
commit319af866112d35dd65ab5c7fc9fe70310a4a7748 (patch)
tree09f6c65781d6a8cbb05e4e2fdb57c197963cd9ce
parentd3b14e887ea29b62d1c2d5129582629a7fe97dd9 (diff)
downloadzsh-319af866112d35dd65ab5c7fc9fe70310a4a7748.tar.gz
zsh-319af866112d35dd65ab5c7fc9fe70310a4a7748.tar.xz
zsh-319af866112d35dd65ab5c7fc9fe70310a4a7748.zip
Added a comment to resizehistents() to explain why the function is
weirder than expected at first glance.
-rw-r--r--Src/hist.c2
1 files changed, 2 insertions, 0 deletions
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) {