about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2022-07-24 21:08:06 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2022-07-24 21:08:06 +0900
commit8e1c6ed6bf416e7716b4c6d5c6822ec752db7b36 (patch)
treefb740488a8dd897ca16e7a4d3d8b606e84a32bf2
parentac6257f1507af144f7c88d030bbf076790d86a42 (diff)
downloadzsh-8e1c6ed6bf416e7716b4c6d5c6822ec752db7b36.tar.gz
zsh-8e1c6ed6bf416e7716b4c6d5c6822ec752db7b36.tar.xz
zsh-8e1c6ed6bf416e7716b4c6d5c6822ec752db7b36.zip
50421: add context as the 1st arg to _dispatch
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Zsh/Context/_redirect3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ce2ec2dd3..660fbbd6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2022-07-24  Jun-ichi Takimoto  <takimoto-j@kba.biglobe.ne.jp>
 
+	* 50421: Completion/Zsh/Context/_redirect: add missing context
+	as the 1st argument to _dispatch
+
 	* 50418: Src/zsh_system.h, configure.ac: use setenv(3)/getenv(3)
 	on newer macOS
 
diff --git a/Completion/Zsh/Context/_redirect b/Completion/Zsh/Context/_redirect
index e6da5d115..520a7666e 100644
--- a/Completion/Zsh/Context/_redirect
+++ b/Completion/Zsh/Context/_redirect
@@ -15,4 +15,5 @@ if [[ "$CURRENT" != "1" ]]; then
   fi
 fi
 
-_dispatch -redirect-,{${compstate[redirect]},-default-},${^strs}
+_dispatch -redirect-,${compstate[redirect]},$_comp_command \
+	  -redirect-,{${compstate[redirect]},-default-},${^strs}