about summary refs log tree commit diff
path: root/Completion/Zsh/Command
diff options
context:
space:
mode:
authordana <dana@dana.is>2019-03-06 18:06:07 -0600
committerdana <dana@dana.is>2019-03-06 18:06:07 -0600
commitf21d54a3818f59b1478c79f6953d8034692f58a0 (patch)
tree45f1d28d30ffb73ce7ef1db7d7e3b70d8c35f77e /Completion/Zsh/Command
parenta41f09f86206c281e7512f6e3b6e0ef944c20989 (diff)
downloadzsh-f21d54a3818f59b1478c79f6953d8034692f58a0.tar.gz
zsh-f21d54a3818f59b1478c79f6953d8034692f58a0.tar.xz
zsh-f21d54a3818f59b1478c79f6953d8034692f58a0.zip
unposted: _zftp: Use 'post' pattern matching
_zftp's use of `#compdef -p`, combined with inaccurate sub-command matching in
the function, was causing it to clobber the completion for other commands,
notably zf_mkdir from zsh/files. To avoid this, use -P instead
Diffstat (limited to 'Completion/Zsh/Command')
-rw-r--r--Completion/Zsh/Command/_zftp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Zsh/Command/_zftp b/Completion/Zsh/Command/_zftp
index 105533055..a41d72ce2 100644
--- a/Completion/Zsh/Command/_zftp
+++ b/Completion/Zsh/Command/_zftp
@@ -1,4 +1,4 @@
-#compdef -p zf*
+#compdef -P zf*
 
 # Completion for zftp builtin and zf* functions.  The functions
 # zfcd_match and zfget_match (also used for old-style completion)