From f21d54a3818f59b1478c79f6953d8034692f58a0 Mon Sep 17 00:00:00 2001 From: dana Date: Wed, 6 Mar 2019 18:06:07 -0600 Subject: 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 --- ChangeLog | 3 +++ Completion/Zsh/Command/_zftp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b8406cdb7..027bb7ac0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2019-03-06 dana + * unposted: Completion/Zsh/Command/_zftp: Use 'post' pattern + matching to avoid clobbering other functions + * 44099: Completion/Darwin/Command/_trash: Add completion for macOS trash utility 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) -- cgit 1.4.1