about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-04-21 16:04:34 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-04-21 16:04:34 +0000
commite70b53a12703a7856078349c848e3aee3ca80131 (patch)
treee48612fe2f681f65484bd989f3087a290852ca4b /Completion/Base
parent74eaa20404143884705227cb82141f9eb1243c60 (diff)
downloadzsh-e70b53a12703a7856078349c848e3aee3ca80131.tar.gz
zsh-e70b53a12703a7856078349c848e3aee3ca80131.tar.xz
zsh-e70b53a12703a7856078349c848e3aee3ca80131.zip
26861 from Greg plus 26863: global parameters in _read_comp
Diffstat (limited to 'Completion/Base')
-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