about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-10 09:25:43 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-10 09:25:43 +0000
commitbd629defe8bf49b38a0e98b82f478d02dd715a81 (patch)
treedafe7b6313e28a8e7fbeeb139d79b8781de5be7b /Src
parent5fcfa125bd4f0006c8207d1652908348f3ea526f (diff)
downloadzsh-bd629defe8bf49b38a0e98b82f478d02dd715a81.tar.gz
zsh-bd629defe8bf49b38a0e98b82f478d02dd715a81.tar.xz
zsh-bd629defe8bf49b38a0e98b82f478d02dd715a81.zip
(15357)
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/compcore.c2
-rw-r--r--Src/Zle/zle_tricky.c2
2 files changed, 3 insertions, 1 deletions
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;
 }