about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Zsh/Context/_equal10
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a3080ea8f..4d8843b80 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2024-08-31  Oliver Kiddle  <opk@zsh.org>
 
+	* 53057: Completion/Zsh/Context/_equal: complete glob qualifiers
+	following an equals expansion
+
 	* 53052: Completion/X/Command/_setxkbmap: update completion with
 	newer options
 
diff --git a/Completion/Zsh/Context/_equal b/Completion/Zsh/Context/_equal
index 58a415d56..5cdeea264 100644
--- a/Completion/Zsh/Context/_equal
+++ b/Completion/Zsh/Context/_equal
@@ -1,3 +1,11 @@
 #compdef -equal-
 
-_path_commands
+local -a match mbegin mend
+
+if _have_glob_qual $PREFIX; then
+  compset -p ${#match[1]}
+  compset -S '[^\)\|\~]#(|\))'
+  _globquals
+else
+  _path_commands
+fi