diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-07-24 14:01:54 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-07-24 14:01:54 +0000 |
commit | 14810d6df13e0564a606b74e4c4e918e80862e25 (patch) | |
tree | 0e24a6c6b0226a90bdf8398ce94b60fdc9a87b0e /Completion/Core/_main_complete | |
parent | d6d4a3abfc84f0940e663cd69537789a039a7056 (diff) | |
download | zsh-14810d6df13e0564a606b74e4c4e918e80862e25.tar.gz zsh-14810d6df13e0564a606b74e4c4e918e80862e25.tar.xz zsh-14810d6df13e0564a606b74e4c4e918e80862e25.zip |
zsh-3.1.6-test-3 dot-zsh-199907241534
Diffstat (limited to 'Completion/Core/_main_complete')
-rw-r--r-- | Completion/Core/_main_complete | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete index af659e1d4..e71267677 100644 --- a/Completion/Core/_main_complete +++ b/Completion/Core/_main_complete @@ -29,10 +29,15 @@ # # local _set_options _unset_options # -# _set_options=("${(@f)$({ unsetopt kshoptionprint; setopt } 2>/dev/null)}") -# _unset_options=("${(@f)$({ unsetopt kshoptionprint; unsetopt } 2>/dev/null)}") +# 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 # -# This is needed because completion function may set options locally +# This is needed because completion functions may set options locally # which makes the output of setopt and unsetopt reflect a different # state than the global one for which you are completing. |