From 0334b4df7cfd728cd8b9480872fbbfcb6029d1e6 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 28 Jun 2000 07:29:59 +0000 Subject: make a-a-i-n-h in menu selection work with one match; better undo behaviour for menu selection (12093) --- Src/Zle/compcore.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Src/Zle/compcore.c') 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. */ -- cgit v1.2.3