Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for errors in system calls #222

Merged
merged 4 commits into from
Jun 3, 2024
Merged

Check for errors in system calls #222

merged 4 commits into from
Jun 3, 2024

Conversation

mvanderkamp
Copy link
Member

Problem

When Vimux fails because it tried to do something that's incompatible with the current tmux version, it fails mysteriously. This is because we don't check whether the system calls to tmux succeeded.

Solution

Check system calls by checking v:shell_error. The variable has been around since at least vim version 7.0001.

I've also documented the VimuxDebug option in the help page.

@alerque alerque merged commit fa35410 into master Jun 3, 2024
7 of 14 checks passed
@alerque alerque deleted the check-system-returns branch June 3, 2024 08:49
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.

2 participants