diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-06-28 07:29:59 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-06-28 07:29:59 +0000 |
commit | 0334b4df7cfd728cd8b9480872fbbfcb6029d1e6 (patch) | |
tree | f4f76e56ecb0deaae771129fd7bd512a47dee3a9 /Src/Zle/compcore.c | |
parent | f889ebfaa3f8d70f5a0e00153bd1b91a8d6c0131 (diff) | |
download | zsh-0334b4df7cfd728cd8b9480872fbbfcb6029d1e6.tar.gz zsh-0334b4df7cfd728cd8b9480872fbbfcb6029d1e6.tar.xz zsh-0334b4df7cfd728cd8b9480872fbbfcb6029d1e6.zip |
make a-a-i-n-h in menu selection work with one match; better undo behaviour for menu selection (12093)
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. */ |