about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-08-15 18:40:04 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-08-15 18:40:04 +0000
commita15007fe649d748783a166c3a016f2c2cb220b3f (patch)
tree6f00768b2ee1166bda6257db3ade31b8e28470ec
parent8e5061d0c63f1e0b3c71b212fdc380ba0a347a58 (diff)
downloadzsh-a15007fe649d748783a166c3a016f2c2cb220b3f.tar.gz
zsh-a15007fe649d748783a166c3a016f2c2cb220b3f.tar.xz
zsh-a15007fe649d748783a166c3a016f2c2cb220b3f.zip
28167: reset more variables on invalidating completion list
-rw-r--r--ChangeLog7
-rw-r--r--Src/Zle/compresult.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 20327e31e..dc310e88a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-15  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* 28167: Src/Zle/compresult.c: reset more variables when
+	invalidating completion list.
+
 2010-08-13  Peter Stephenson  <pws@csr.com>
 
 	* 28160 modified as per 28164: Src/Zle/zle_refresh.c: when the
@@ -13525,5 +13530,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5056 $
+* $Revision: 1.5057 $
 *****************************************************
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c
index 43733b0c6..bdfcfd739 100644
--- a/Src/Zle/compresult.c
+++ b/Src/Zle/compresult.c
@@ -2284,6 +2284,8 @@ invalidate_list(void)
     zsfree(minfo.postbr);
     minfo.postbr = minfo.prebr = NULL;
     compwidget = NULL;
+    nmatches = 0;
+    amatches = NULL;
 
     return 0;
 }