1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

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
This commit is contained in:
dana 2019-03-06 18:06:07 -06:00
parent a41f09f862
commit f21d54a381
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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)