From bd629defe8bf49b38a0e98b82f478d02dd715a81 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 10 Jul 2001 09:25:43 +0000 Subject: (15357) --- Src/Zle/compcore.c | 2 +- Src/Zle/zle_tricky.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 887557f40..97ed6d58f 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -420,7 +420,7 @@ do_completion(Hookdef dummy, Compldat dat) cs = origcs; } /* Print the explanation strings if needed. */ - if (!showinglist && validlist && usemenu != 2 && + if (!showinglist && validlist && usemenu != 2 && uselist && (nmatches != 1 || diffmatches) && useline >= 0 && useline != 2 && (!oldlist || !listshown)) { onlyexpl = 3; diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 515fb9e97..ca1a50ce1 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -2363,6 +2363,8 @@ expandorcompleteprefix(char **args) comppref = 1; ret = expandorcomplete(args); + if (cs && line[cs - 1] == ' ') + makesuffixstr(NULL, "\\-", 0); comppref = 0; return ret; } -- cgit 1.4.1