Skip to content

Fix zsh capture script exit code and redundant compinit - #326

Merged
rsteube merged 1 commit into
masterfrom
fix/capture-zsh-cleanup
Jul 11, 2026
Merged

Fix zsh capture script exit code and redundant compinit#326
rsteube merged 1 commit into
masterfrom
fix/capture-zsh-cleanup

Conversation

@rsteube-bot

Copy link
Copy Markdown
Contributor

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.2

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.2
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 29171863713

Coverage remained the same at 0.0%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 1294
Covered Lines: 0
Line Coverage: 0.0%
Coverage Strength: 0.0 hits per line

💛 - Coveralls

@rsteube
rsteube merged commit 6aa2bfd into master Jul 11, 2026
3 checks passed
@rsteube
rsteube deleted the fix/capture-zsh-cleanup branch July 11, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants