1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

52189: ignore compadd -M if -U also specified as they don't make sense together

This fixes df completion.
This commit is contained in:
Oliver Kiddle 2023-09-26 23:08:54 +02:00
parent 985952e2f6
commit 70320635b4
3 changed files with 9 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#autoload
local tmp
local dev_tmp dpath_tmp mp_tmp mline
local -a dev_tmp dpath_tmp mp_tmp mline
case "$OSTYPE" in
linux*)
@ -15,6 +15,7 @@ irix*)
;;
freebsd*|dragonfly*)
/sbin/mount | while read mline; do
[[ $mline[(w)1] = map ]] && continue
dev_tmp+=( $mline[(w)1] )
mp_tmp+=( $mline[(w)3] )
done