about summary refs log tree commit diff
path: root/Completion/Base/Widget/_read_comp
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Base/Widget/_read_comp')
-rw-r--r--Completion/Base/Widget/_read_comp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Base/Widget/_read_comp b/Completion/Base/Widget/_read_comp
index bc6e4c3c6..3dd7f9adc 100644
--- a/Completion/Base/Widget/_read_comp
+++ b/Completion/Base/Widget/_read_comp
@@ -23,9 +23,10 @@
 #  _read_comp         Last completion string read from user
 
 # emulate -L zsh
-setopt localoptions extendedglob nobadpattern # xtrace promptsubst
+setopt localoptions extendedglob nobadpattern unset # xtrace promptsubst
 # local PS4='%N:%i:$((#key))> '
 
+typeset -g _read_comp
 if [[ ${+NUMERIC} = 0 && -n $_read_comp ]]; then
   if [[ $_read_comp = _* ]]; then
     eval $_read_comp