mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
users/15204: in zfinit check for compctl before using
This commit is contained in:
parent
4de3dbac16
commit
93e0bc094f
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
2010-07-28 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* users/15204: Functions/Zftp/zfinit: check compctl is loaded
|
||||
before trying to use it (for ksh emulation).
|
||||
|
||||
* as described in users/15202: Functions/Misc/run-help,
|
||||
Functions/Newuser/zsh-newuser-install,
|
||||
Functions/Prompts/promptinit, Functions/TCP/tcp_open,
|
||||
|
@ -13438,5 +13441,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.5037 $
|
||||
* $Revision: 1.5038 $
|
||||
*****************************************************
|
||||
|
|
|
@ -34,7 +34,8 @@ autoload -Uz 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[(r)_zf*]} ]]; then
|
||||
if [[ ${#_patcomps} -eq 0 || -z ${_patcomps[(r)_zf*]} ]] &&
|
||||
(compctl >/dev/null 2>&1); then
|
||||
# only way of getting that noglob out of the way: this is unnecessary with
|
||||
# widget-based completion
|
||||
setopt completealiases
|
||||
|
|
Loading…
Reference in a new issue