1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-12-07 18:11:20 +01:00

43345: don't modify global variable in _umountable

This commit is contained in:
Oliver Kiddle 2018-08-28 17:41:29 +02:00
parent e104d0a6fe
commit 419625bf87
3 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2018-08-28 Oliver Kiddle <okiddle@yahoo.co.uk>
* 43345: Completion/Unix/Command/_mount,
Completion/Unix/Type/_umountable: don't modify global variable
* unposted: Completion/Linux/Command/_dkms: correct
completion argument order

View file

@ -931,7 +931,7 @@ devordir)
esac
;;
udevordir)
_umountable
_umountable && ret=0
;;
labels)
_wanted labels expl 'disk label' compadd /dev/disk/by-label/*(:t) && ret=0

View file

@ -41,4 +41,4 @@ dev_tmp=( "${(@)dev_tmp:#/*}" )
_alternative \
'device-labels:device label:compadd -a dev_tmp' \
'device-paths: device path:_canonical_paths -A dpath_tmp -N -M "r:|/=* r:|=*" device-paths device\ path' \
'directories:mount point:_canonical_paths -A mp_tmp -N -M "r:|/=* r:|=*" directories mount\ point' && ret=0
'directories:mount point:_canonical_paths -A mp_tmp -N -M "r:|/=* r:|=*" directories mount\ point'