about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Zsh/Command/_typeset4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 068c697cc..71921f561 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2021-08-27  Oliver Kiddle  <opk@zsh.org>
 
+	* unposted (based on Marlon: 49273):
+	Completion/Zsh/Command/_typeset: add -x to local completion
+
 	* 49309: Completion/Linux/Command/_strace: update the
 	strace completion through strace 5.13
 
diff --git a/Completion/Zsh/Command/_typeset b/Completion/Zsh/Command/_typeset
index 3f7de9706..d3304bed0 100644
--- a/Completion/Zsh/Command/_typeset
+++ b/Completion/Zsh/Command/_typeset
@@ -69,8 +69,8 @@ case ${service} in
     allargs[i]='-i+[specify arithmetic base for output]:: :_guard "[0-9]#" base' \
   ;;
   readonly) use="${use/r/}" ;;
-  local) use="${use/[fkz]/}" ;&
-  export) use="${${use//[gkz]/}/x/}" ;;
+  local) use="${use//[fgkz]/}" ;;
+  export) use="${use//[fgkxz]/}" ;;
 esac
 
 [[ -z "${words[(r)-*[aA]*]}" ]] || func=p