about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--NEWS10
-rw-r--r--Src/Zle/compresult.c3
3 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e12eb3b46..b53e84701 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-07-12  Peter Stephenson  <pws@csr.com>
+
+	* unposted: improve 20150 by setting pointer to NULL when
+	freed.
+
 2004-07-11  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
 
 	* 20150: Src/Zle/compresult.c: repost of ancient attempt
diff --git a/NEWS b/NEWS
index 905f9456b..889400eec 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,16 @@ CHANGES FROM PREVIOUS VERSIONS OF ZSH
 Changes since zsh version 4.2.0
 -------------------------------
 
+- The glob qualifier F indicates a non-empty directory.  Hence *(F)
+  indicates all subdirectories with entries, *(/^F) means all
+  subdirectories with non entries.
+
+- fc -p and fc -P provide push/pop for the status of the shell's
+  history (both internal and using the history file).  With automatic
+  scoping (fc -ap) it becomes easy to use a temporary history in a
+  function.  This has been added to the calculator function zcalc to make
+  its internal history work more seamlessly.
+
 - A new `try block' and `always block' syntax has been introduced
   to make it easier to ensure the shell runs important tidy-up code
   in the event of an error.  It also runs after a break, continue, or
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c
index 05f632d92..05b5f1a10 100644
--- a/Src/Zle/compresult.c
+++ b/Src/Zle/compresult.c
@@ -1770,7 +1770,10 @@ calclist(int showall)
     }
     else
 	for (g = amatches; g; g = g->next)
+	{
 	    zfree(g->widths, 0);
+	    g->widths = NULL;
+	}
     listdat.valid = 1;
     listdat.hidden = hidden;
     listdat.nlist = nlist;