Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] fix _pip curcontext assignment error



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