Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] github #119: fix completion for git bisect visualize
- X-seq: zsh-workers 53031
- From: Christian Heusel <christian@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Cc: Christian Heusel <christian@xxxxxxxxx>
- Subject: [PATCH] github #119: fix completion for git bisect visualize
- Date: Mon, 12 Aug 2024 20:11:42 +0200
- Archived-at: <https://zsh.org/workers/53031>
- List-id: <zsh-workers.zsh.org>
- Ui-outboundreport: notjunk:1;M01:P0:8dRxSJfjgAI=;aqdvP7QJRODcoep19PxgVsmBjlV HmK4qiMbvEm8vX3Fnta5MR87w+imD9uf5BFNj/qlq/qukCpdUYX+FHq3m21BIHpgDmYoKtT1r 4wQC44RqejPwuAd8khx+wLqoM9JM7Mj8Gyv6FYrv2LE3Jm0ByKEC/63Mkpc6YiYY+6CAs4oVc 2mBjhz7QU3U1AHKY+tczAzcF3aqCdBUnEWNQogfA8tdonnl5jveC/izrl9ENxURATkhVxcxFL BvmOzsHQ7YY4Yxyxw+eRuLvwvlgPrfSzUQVI6mI5Bi0oowiiYmwd/y2gTmn6WWvPNKfH37do2 Q2hegjRwidcp8RN9mIgOg7At6rOdyccxwD/pp/o2uTRv1VecwlGIuUcE/GKZLKEf5KReirHuw oLa3Hu/p9tKoxiPmGl6lVmV8fRe8QjMSPAIdwFJRCE/6KsQ0jGkqHRWkXZJwhBV4sEJa+aqwW XofPGsiT/gbetvezIkUPfJEXAYsZE1jU5JZzivZ85YNEtQZY/wC7WfvvPCcOOhKqMFqKsmGKn emcvbulCMTBjIw+YS634emqp9LVpgC9WL4gdCFFsD/XBt9ns6AZkMEk3hS520lfo89MDMI2gC P0cjCdkUVR5dHwlB9NKIzUx30Fy8/assbtEtWed/VghfXXBvfx3cU4iwEup4Yiaxyh/+lIb9W GYHA+9xMTwkGd85fJ+rfie39pBsaQAj+e+0S+DJul+4Vnu79d6vmj5n1kjtU1lvu2mjx+rJyi 08/+hrp2dzQjFE8LG1wy0wxrNJuiJIA4A==
When trying to use the completion for git bisect visualize one currently
is greeted with the curious error of something like this:
git bisect visualize _git-bisect:89: command not found: arch
While in this case 'arch' is the name of the first folder in the
directory. The cause for this is a missing separation of switch cases
which we fix by inserting the needed ";;".
Signed-off-by: Christian Heusel <christian@xxxxxxxxx>
---
This is a re-send of https://github.com/zsh-users/zsh/pull/119 which I
will close should this patch be accepted!
Thanks for your awesome work on zsh! <3
---
Completion/Unix/Command/_git | 1 +
1 file changed, 1 insertion(+)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 22b945e38..6c6d59b24 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -278,6 +278,7 @@ _git-bisect () {
_arguments -C -s \
$log_options \
$revision_options && ret=0
+ ;;
(*)
_nothing
;;
--
2.46.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author