From e0b26186f1d3c1a3a580eb7e8a8199c25536f4e6 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 26 Oct 1999 15:36:10 +0000 Subject: manual/8424 --- Completion/Core/_main_complete | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'Completion/Core/_main_complete') diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete index 304a97828..72233a59b 100644 --- a/Completion/Core/_main_complete +++ b/Completion/Core/_main_complete @@ -9,13 +9,8 @@ # # local _set_options _unset_options # -# if zmodload -e parameter; then -# _set_options=(${(k)options[(R)on]}) -# _unset_options=(${(k)options[(R)off]}) -# else -# _set_options=("${(@f)$({ unsetopt kshoptionprint; setopt } 2>/dev/null)}") -# _unset_options=("${(@f)$({ unsetopt kshoptionprint; unsetopt } 2>/dev/null)}") -# fi +# _set_options=(${(k)options[(R)on]}) +# _unset_options=(${(k)options[(R)off]}) # # This is needed because completion functions may set options locally # which makes the output of setopt and unsetopt reflect a different @@ -26,7 +21,7 @@ local comp post ret=1 _compskip typeset -U _lastdescr -setopt localoptions nullglob rcexpandparam +setopt localoptions nullglob rcexpandparam extendedglob unsetopt markdirs globsubst shwordsplit nounset ksharrays # Special completion contexts after `~' and `='. -- cgit 1.4.1