Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] fix _pip curcontext assignment error
- X-seq: zsh-workers 55214
- From: tiandic <2323748675@xxxxxx>
- To: zsh-workers@xxxxxxx
- Cc: tiandic <2323748675@xxxxxx>
- Subject: [PATCH] fix _pip curcontext assignment error
- Date: Tue, 13 Oct 2026 18:13:29 +0800
- Archived-at: <https://zsh.org/workers/55214>
- List-id: <zsh-workers.zsh.org>
This bug causes curcontext to be incorrectly set to `pip-` when using `pip install <TAB>`, when it should actually be `pip-install`.
---
Completion/Unix/Command/_pip | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_pip b/Completion/Unix/Command/_pip
index 370012d56..369fd5135 100644
--- a/Completion/Unix/Command/_pip
+++ b/Completion/Unix/Command/_pip
@@ -57,7 +57,7 @@ case $state in
;;
options)
- curcontext="${curcontext%:*}-$words[2]:"
+ curcontext="${curcontext%:*}-$words[1]:"
case $words[1] in
download|install|list|wheel)
--
2.56.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author