Commit 46aa0df
committed
Fix zsh capture script exit code and redundant compinit
The capture script always returned exit code 2 because `return 0` inside
the piped while-loop only exits the subshell, not the script. Since
carapace's ActionExecCommand treats non-zero exits as errors and skips
the output callback, this silently broke the zsh bridge on every
invocation. Changed the unconditional `return 2` to `return 0`.
Also merged the redundant double compinit call into a single call with
the custom dump path, and fixed stray whitespace on the source line.
Added deviation comments marking where this vendored copy diverges from
upstream (Valodim/zsh-capture-completion).
Assisted-by: Crush:glm-5.21 parent 70a0817 commit 46aa0df
1 file changed
Lines changed: 5 additions & 4 deletions
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
| 142 | + | |
0 commit comments