* PATCH: re-calc list for listlist()
@ 1999-10-27 8:20 Sven Wischnowsky
0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 1999-10-27 8:20 UTC (permalink / raw)
To: zsh-workers
An another problem I found when looking at the menu-select problem:
listlist() didn't force a re-calculation either (it's used, for
example, when completing inside execute-named-command).
Bye
Sven
diff -u oldsrc/Zle/zle_tricky.c Src/Zle/zle_tricky.c
--- oldsrc/Zle/zle_tricky.c Tue Oct 26 20:53:21 1999
+++ Src/Zle/zle_tricky.c Tue Oct 26 21:36:44 1999
@@ -7814,6 +7814,9 @@
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;
@@ -7825,6 +7828,7 @@
dg.ylist = (char **) makearray(l, 0, 1, &(dg.lcount), NULL, NULL);
nmatches = dg.lcount;
amatches = &dg;
+ listdat.valid = 0;
ilistmatches(NULL, NULL);
amatches = am;
@@ -7832,6 +7836,7 @@
smatches = sm;
nmatches = nm;
complastprompt = oclp;
+ memcpy(&listdat, &odat, sizeof(struct cldata));
return !dg.lcount;
}
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-10-27 8:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-27 8:20 PATCH: re-calc list for listlist() Sven Wischnowsky
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).