diff options
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/complist.c | 2 | ||||
-rw-r--r-- | Src/Zle/compresult.c | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 235012ee3..c62d62e1d 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -782,7 +782,7 @@ complistmatches(Hookdef dummy, Chdata dat) if (asklist()) { amatches = oamatches; - return 1; + return (noselect = 1); } if (mselect >= 0) { int i; diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 6ec031322..192c0921f 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -1541,8 +1541,7 @@ mod_export int asklist(void) tcmultout(TCUP, TCMULTUP, nlnct); } else putc('\n', shout); - if (minfo.cur) - minfo.asked = 2; + minfo.asked = 2; return 1; } if (clearflag) { @@ -1553,10 +1552,9 @@ mod_export int asklist(void) } else putc('\n', shout); settyinfo(&shttyinfo); - if (minfo.cur) - minfo.asked = 1; + minfo.asked = 1; } - return 0; + return (minfo.asked ? minfo.asked - 1 : 0); } /**/ |