about summary refs log tree commit diff
path: root/Completion/Linux
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2020-06-04 20:48:17 +0300
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-06-08 06:23:05 +0000
commitaa7b62e3faca1fe0e6d47d6706280ff67694cff5 (patch)
treeb3c3da0e035e4efc514fccf0f274d276cb08b7f5 /Completion/Linux
parentf297132cf0efe7da7c302a99e2fd9e44d1ddc64e (diff)
downloadzsh-aa7b62e3faca1fe0e6d47d6706280ff67694cff5.tar.gz
zsh-aa7b62e3faca1fe0e6d47d6706280ff67694cff5.tar.xz
zsh-aa7b62e3faca1fe0e6d47d6706280ff67694cff5.zip
gitlab !14 (fixup): modutils comp: Fix getting the value of kver from opt_args
Diffstat (limited to 'Completion/Linux')
-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 32cb49bd0..cada38a16 100644
--- a/Completion/Linux/Command/_modutils
+++ b/Completion/Linux/Command/_modutils
@@ -106,7 +106,7 @@ _modutils() {
     ;&
 
     all-modules)
-      local kver=${opt_args[(-S|-k|--set-version)]:-$(uname -r)}
+      local kver=${(v)opt_args[(i)(-S|-k|--set-version)]:-$(uname -r)}
 
       if _cache_invalid modules-$kver || ! _retrieve_cache modules-$kver;
       then