about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Cook <illua@users.sourceforge.net>2021-07-19 02:16:35 -0400
committerEric Cook <illua@users.sourceforge.net>2021-07-19 02:16:35 -0400
commitd9e5ef02040d846a7b1ea1f7283f57152859bd6c (patch)
treef0a572300f402782b725528f847bd4b4356f98e9
parent9b3a2924101c4e17dbb9c0b8745dc4eb9cdca910 (diff)
downloadzsh-d9e5ef02040d846a7b1ea1f7283f57152859bd6c.tar.gz
zsh-d9e5ef02040d846a7b1ea1f7283f57152859bd6c.tar.xz
zsh-d9e5ef02040d846a7b1ea1f7283f57152859bd6c.zip
49147: fix completion of linux kernel modules
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Linux/Command/_modutils2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2c988b4c8..dd5012fbf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-07-19  Eric Cook  <llua@gmx.com>
+
+	* 49147: Completion/Linux/Command/_modutils: fix the completion
+	linux kernel modules
+
 2021-07-19  Jun-ichi Takimoto  <takimoto-j@kba.biglobe.ne.jp>
 
 	* 49166: Src/subst.c, Test/D04parameter.ztst: fix coredump in
diff --git a/Completion/Linux/Command/_modutils b/Completion/Linux/Command/_modutils
index c62c6e7b6..1205f2506 100644
--- a/Completion/Linux/Command/_modutils
+++ b/Completion/Linux/Command/_modutils
@@ -132,7 +132,7 @@ _modutils() {
 	_store_cache modules-$kver modules modaliases
       fi
 
-      if (( ${+opt_args[(k)(-R|--resolve-alias)]} )); then
+      if [[ -v opt_args[(i)(-R|--resolve-alias)] ]]; then
 	_tags module-aliases
       else
 	_tags files modules module-aliases