about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Functions/Zftp/zfinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Zftp/zfinit b/Functions/Zftp/zfinit
index 44635349f..60d116607 100644
--- a/Functions/Zftp/zfinit
+++ b/Functions/Zftp/zfinit
@@ -31,7 +31,7 @@ autoload -U zfstat zftp_chpwd zftp_progress zftransfer zftype zfuget zfuput
 # zftp completions: only use these if new-style completion is not
 # active.
 #
-if [[ ${#_patcomps} -eq 0 || -z ${_patcomps[(i)zf*]} ]]; then
+if [[ ${#_patcomps} -eq 0 || -z ${_patcomps[(r)zf*]} ]]; then
   # only way of getting that noglob out of the way: this is unnecessary with
   # widget-based completion
   setopt completealiases