about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-09 11:14:34 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-09 11:14:34 +0000
commit4997db3470da7dd8b538b6e8df953c309c1fdda6 (patch)
tree72b551f6bf3a942882ff5b82d8f4c3142e8b8de9 /Src
parent427b4b74f24757eef749bd4c7b22f8398f47261f (diff)
downloadzsh-4997db3470da7dd8b538b6e8df953c309c1fdda6.tar.gz
zsh-4997db3470da7dd8b538b6e8df953c309c1fdda6.tar.xz
zsh-4997db3470da7dd8b538b6e8df953c309c1fdda6.zip
fix for menu-completion when another completion came right after it (11836)
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/compcore.c1
-rw-r--r--Src/Zle/complist.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index ad048718d..7497d03b4 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -512,6 +512,7 @@ after_complete(Hookdef dummy, int *dat)
 	if ((ret = runhookdef(MENUSTARTHOOK, (void *) &cdat))) {
 	    dat[1] = 0;
 	    menucmp = menuacc = 0;
+	    minfo.cur = NULL;
 	    if (ret == 2) {
 		fixsuffix();
 		cs = 0;
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index 622219aaf..cbc39266f 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -1778,6 +1778,7 @@ domenuselect(Hookdef dummy, Chdata dat)
 	    s->origcs = origcs;
 	    s->origll = origll;
 	    menucmp = menuacc = hasoldlist = 0;
+	    minfo.cur = NULL;
 	    fixsuffix();
 	    validlist = 0;
 	    amatches = pmatches = lastmatches = NULL;