Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

_path_files returning an error



Hi folks:

The _open completion function distributed with zsh for Darwin (mac os x) uses _path_files:

i.e.,

_open_absolute_application_path() {
  local expl curcontext
  zstyle -T ":completion:${curcontext}:files" prefix-needed && \
    [[ "$PREFIX" != [/~]* && compstate[nmatches] -ne 0 ]] && return 1
_wanted files expl 'application file' _path_files -P "$PREFIX[1]" - W /
}


It returns this error, new to  4.3.5:

zsh-% open -a TextMate <tab>
_path_files:compfiles:357: too few arguments

It then offers to complete with directories but not file names.

Line 357 is this:

compfiles -p$cfopt tmp1 accex "$skipped" "$_matcher $matcher[2]" '' fake "$pats[@]"


Bill




Messages sorted by: Reverse Date, Date, Thread, Author