about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-27 08:35:50 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-27 08:35:50 +0000
commit6ff88c893913cf73fb6f695817f50e7659b6fe74 (patch)
tree54fb13f9029d2335e0f930ba58d66cf9f35bce46
parent6345ce7f644e92d0b28a50096199bbb73fa7f73c (diff)
downloadzsh-6ff88c893913cf73fb6f695817f50e7659b6fe74.tar.gz
zsh-6ff88c893913cf73fb6f695817f50e7659b6fe74.tar.xz
zsh-6ff88c893913cf73fb6f695817f50e7659b6fe74.zip
zsh-workers/8438
-rw-r--r--Src/Zle/zle_tricky.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index 6b47bc144..e0687161f 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -7793,6 +7793,9 @@ listlist(LinkList l)
     int vl = validlist, sm = smatches, nm = nmatches;
     char *oclp = complastprompt;
     Cmgroup am = amatches;
+    struct cldata odat;
+
+    memcpy(&odat, &listdat, sizeof(struct cldata));
 
     if (listshown)
 	showagain = 1;
@@ -7804,6 +7807,7 @@ listlist(LinkList l)
     dg.ylist = (char **) makearray(l, 0, 1, &(dg.lcount), NULL, NULL);
     nmatches = dg.lcount;
     amatches = &dg;
+    listdat.valid = 0;
     ilistmatches(NULL, NULL);
     amatches = am;
 
@@ -7811,6 +7815,7 @@ listlist(LinkList l)
     smatches = sm;
     nmatches = nm;
     complastprompt = oclp;
+    memcpy(&listdat, &odat, sizeof(struct cldata));
 
     return !dg.lcount;
 }