From d9d9925acba894045db8c52f6bb2e2fc4cd75dfd Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 15 Dec 1999 21:58:24 +0000 Subject: zsh-3.1.6-pws-12 --- Functions/Zftp/zfrglob | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Functions') diff --git a/Functions/Zftp/zfrglob b/Functions/Zftp/zfrglob index 535cb8006..ee460f9b1 100644 --- a/Functions/Zftp/zfrglob +++ b/Functions/Zftp/zfrglob @@ -9,8 +9,8 @@ # stick with a single directory. This is the default. # (2) Use remote globbing, i.e. pass it to ls at the site. # Faster, but only works with UNIX, and only basic globbing. -# We do this if zfconfig[remote_glob] (or $zfrglob for -# backward compatibility) is non-null. +# We do this if the remote_glob style (or $zfrglob for +# backward compatibility) is set. # There is only one argument, the variable containing the # pattern to be globbed. We set this back to an array containing @@ -19,11 +19,9 @@ emulate -L zsh setopt extendedglob -local pat dir nondir files i +local pat dir nondir files i zfrglob -if [[ -n ${zfconfig[remote_glob]} ]]; then - local zfrglob=1 -fi +zstyle -t "$curcontext" remote_glob && zfrglob=1 eval pat=\$$1 -- cgit 1.4.1