about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2020-05-31 13:36:40 +0300
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-06-01 08:21:39 +0000
commit56fffd548203c3257d9fe05d75e36d8002b48bcc (patch)
treedf28219be0ba38275b1b23649d3c5f7a3b6b2f83 /Completion
parent94e38548e306e6dd6fe601378fea85903d060bf5 (diff)
downloadzsh-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')
-rw-r--r--Completion/Linux/Command/_modutils2
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