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

49389: leading variables in autoload file completion

This commit is contained in:
Bart Schaefer 2021-09-08 16:03:57 -07:00
parent c4d07b3ec0
commit 344d471c26
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2021-09-08 Bart Schaefer <schaefer@zsh.org>
* 49389: Completion/Zsh/Command/_typeset: leading variables in
autoload file completion
* 49387: Src/Zle/zle_misc.c: suffix highlight with "compadd -R"
* 49386: Test/Z03run-help.ztst: handle separate source/build trees

View file

@ -101,9 +101,9 @@ if [[ "$state" = vars_eq ]]; then
elif (( $+opt_args[-w] )); then
_wanted files expl 'zwc file' _files -g '*.zwc(-.)' && ret=0
elif [[ $service = autoload || -n $opt_args[(i)-[uU]] ]]; then
if [[ $PREFIX[1] = [/~] ]]; then
if [[ ${"${(e)PREFIX}"[1]} = [/~] ]] && _files; then
# Autoload by absolute path
_files && ret=0
ret=0
else
args=(${^fpath}/*(-.:t))
# Filter out functions already loaded or marked for autoload.