diff options
author | Doron Behar <doron.behar@gmail.com> | 2020-05-31 13:36:40 +0300 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-06-01 08:21:39 +0000 |
commit | 56fffd548203c3257d9fe05d75e36d8002b48bcc (patch) | |
tree | df28219be0ba38275b1b23649d3c5f7a3b6b2f83 /Completion/Linux | |
parent | 94e38548e306e6dd6fe601378fea85903d060bf5 (diff) | |
download | zsh-56fffd548203c3257d9fe05d75e36d8002b48bcc.tar.gz zsh-56fffd548203c3257d9fe05d75e36d8002b48bcc.tar.xz zsh-56fffd548203c3257d9fe05d75e36d8002b48bcc.zip |
gitlab !14: modutils completion: Fix getting the value of kver from opt_args
To get the _value_ of either of the options -S, -k or --set-version, the (i) subscript flag is not needed.
Diffstat (limited to 'Completion/Linux')
-rw-r--r-- | Completion/Linux/Command/_modutils | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Linux/Command/_modutils b/Completion/Linux/Command/_modutils index ff6844f41..32cb49bd0 100644 --- a/Completion/Linux/Command/_modutils +++ b/Completion/Linux/Command/_modutils @@ -106,7 +106,7 @@ _modutils() { ;& all-modules) - local kver=${opt_args[(i)(-S|-k|--set-version)]:-$(uname -r)} + local kver=${opt_args[(-S|-k|--set-version)]:-$(uname -r)} if _cache_invalid modules-$kver || ! _retrieve_cache modules-$kver; then |