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:
parent
e104d0a6fe
commit
419625bf87
3 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue