diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-04 11:31:11 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-04 11:31:11 +0000 |
commit | c037d283683a16348f3c3664994c55f2919d4683 (patch) | |
tree | 3bf30737c6842e0b9bbfa8db97e1be0afb9733c3 /Src/Zle/complist.c | |
parent | beb429d62fe8b11f9eef67c455bcfdc8fe9f2722 (diff) | |
download | zsh-c037d283683a16348f3c3664994c55f2919d4683.tar.gz zsh-c037d283683a16348f3c3664994c55f2919d4683.tar.xz zsh-c037d283683a16348f3c3664994c55f2919d4683.zip |
zsh-workers/8535
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r-- | Src/Zle/complist.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 356b26c2b..5f40ffb9a 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -545,7 +545,7 @@ domenuselect(Hookdef dummy, Chdata dat) Cmgroup *pg; Thingy cmd; Menustack u = NULL; - int i = 0, acc = 0, wishcol = 0, setwish = 0, oe = onlyexpl; + int i = 0, acc = 0, wishcol = 0, setwish = 0, oe = onlyexpl, wasnext = 0; char *s; HEAPALLOC { @@ -591,7 +591,7 @@ domenuselect(Hookdef dummy, Chdata dat) while (mcol < mcols - 1 && p[1] == minfo.cur) mcol++, p++, pg++; } - setwish = 0; + setwish = wasnext = 0; getk: @@ -634,7 +634,7 @@ domenuselect(Hookdef dummy, Chdata dat) } clearlist = listshown = 1; mselect = (*(minfo.cur))->gnum; - setwish = 1; + setwish = wasnext = 1; continue; } else if (cmd == Th(z_acceptandhold) || cmd == Th(z_acceptandmenucomplete)) { @@ -859,6 +859,11 @@ domenuselect(Hookdef dummy, Chdata dat) menucmp = lastambig = hasoldlist = 0; do_single(*(minfo.cur)); } + if (wasnext) { + menucmp = 2; + showinglist = -2; + minfo.asked = 0; + } if (!noselect) { showinglist = -2; onlyexpl = oe; |