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

42984: Fix argument pass-through to compadd

This commit is contained in:
dana 2018-06-11 12:22:42 -05:00
parent 63e09b338b
commit 6b4e78dce6
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2018-06-11 dana <dana@dana.is>
* 42984: dana: Completion/Unix/Type/_files,
Completion/Unix/Type/_object_files: fix argument pass-through to compadd
2018-06-10 Oliver Kiddle <okiddle@yahoo.co.uk> 2018-06-10 Oliver Kiddle <okiddle@yahoo.co.uk>
* 42978: dana: Completion/Darwin/Command/_pbcopy: fix small bug * 42978: dana: Completion/Darwin/Command/_pbcopy: fix small bug

View file

@ -121,7 +121,7 @@ for def in "$pats[@]"; do
done done
fi fi
else else
_path_files "$expl[@]" -g "$pat" "$opts[@]" && ret=0 _path_files -g "$pat" "$opts[@]" "$expl[@]" && ret=0
fi fi
done done
(( ret )) || break (( ret )) || break

View file

@ -9,4 +9,4 @@ __object_file() {
$REPLY = (core*|*.core) ]] $REPLY = (core*|*.core) ]]
} }
_files -g '*(-.e,__object_file,)' _files -g '*(-.e,__object_file,)' "$@" "${(@)expl}"