diff options
Diffstat (limited to 'Src/Zle/compcore.c')
-rw-r--r-- | Src/Zle/compcore.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index ad87fe619..895267535 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -37,7 +37,7 @@ static Widget lastcompwidget; /* Flags saying what we have to do with the result. */ /**/ -int useexact, useline, uselist, forcelist, startauto; +int useexact, useline, uselist, forcelist, iforcemenu, startauto; /* Non-zero if we should go back to the last prompt. */ @@ -349,7 +349,10 @@ do_completion(Hookdef dummy, Compldat dat) if (comppatmatch && *comppatmatch && comppatmatch != opm) haspattern = 1; - if (useline < 0) + if (iforcemenu) { + do_ambig_menu(); + ret = 0; + } else if (useline < 0) ret = selfinsert(zlenoargs); else if (!useline && uselist) { /* All this and the guy only wants to see the list, sigh. */ |