diff options
| author | dana <dana@dana.is> | 2019-03-06 18:06:07 -0600 |
|---|---|---|
| committer | dana <dana@dana.is> | 2019-03-06 18:06:07 -0600 |
| commit | f21d54a3818f59b1478c79f6953d8034692f58a0 (patch) | |
| tree | 45f1d28d30ffb73ce7ef1db7d7e3b70d8c35f77e | |
| parent | 44099: Completion: Add _trash (diff) | |
| download | zsh-f21d54a3818f59b1478c79f6953d8034692f58a0.tar zsh-f21d54a3818f59b1478c79f6953d8034692f58a0.tar.gz zsh-f21d54a3818f59b1478c79f6953d8034692f58a0.tar.bz2 zsh-f21d54a3818f59b1478c79f6953d8034692f58a0.tar.lz zsh-f21d54a3818f59b1478c79f6953d8034692f58a0.tar.xz zsh-f21d54a3818f59b1478c79f6953d8034692f58a0.tar.zst 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
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | Completion/Zsh/Command/_zftp | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,8 @@ 2019-03-06 dana <dana@dana.is> + * 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) |
