about summary refs log tree commit diff
path: root/Functions/Zle
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zle')
-rw-r--r--Functions/Zle/keeper6
1 files changed, 5 insertions, 1 deletions
diff --git a/Functions/Zle/keeper b/Functions/Zle/keeper
index 2a721113d..c29b22d6f 100644
--- a/Functions/Zle/keeper
+++ b/Functions/Zle/keeper
@@ -79,7 +79,11 @@ _expand_word_and_keep() {
         fi
         builtin compadd "$@"
     }
-    { _main_complete _expand } always { unfunction compadd }
+    { _expand_word } always { unfunction compadd }
 }
 
 zle -C _expand_word complete-word _expand_word_and_keep
+
+# This style is required to segregate the all-expansions group for
+# purposes of _expand_word_and_keep.
+zstyle ':completion:expand-word:expand:::all-expansions' group-name ''