about summary refs log tree commit diff
path: root/Src/Zle/zle_tricky.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-11 08:22:02 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-11 08:22:02 +0000
commit027604400ba98f4c947784fc691dc7c93b9bf366 (patch)
tree96072e9c3b307111e1aaf8ca92c2c75570aa78f3 /Src/Zle/zle_tricky.c
parent1f62b5acbe4a6e5c2c1f704ab1dcfd207afe9919 (diff)
downloadzsh-027604400ba98f4c947784fc691dc7c93b9bf366.tar.gz
zsh-027604400ba98f4c947784fc691dc7c93b9bf366.tar.xz
zsh-027604400ba98f4c947784fc691dc7c93b9bf366.zip
15352,15357
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r--Src/Zle/zle_tricky.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index 9de491a4a..e6b8cfff7 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -2359,6 +2359,8 @@ expandorcompleteprefix(char **args)
 
     comppref = 1;
     ret = expandorcomplete(args);
+    if (cs && line[cs - 1] == ' ')
+        makesuffixstr(NULL, "\\-", 0);
     comppref = 0;
     return ret;
 }