Skip to content

Ignore 'pane already closed' error in VimuxCloseOnExit #236

@remko

Description

@remko

I use Vimux for running vim-test, which uses vimux to spawn a new pane when running tests.
I want to automatically close the forked vimux tab when exiting nvim, so i set VimuxCloseOnExit.
However, if i already closed the pane (sometimes during a session i close the pane myself), i get an error when exiting nvim:

Error detected while processing VimLeave Autocommands for "*"..function <SNR>43_autoclose[2]..VimuxCloseRunner[2]..VimuxTmux[8]..VimLeave Autocommands for "*"..function <SNR>43_autoclose[2]..VimuxCloseRunner[2]..VimuxTmux:
E605: Exception not caught: Tmux command failed with message:can't find pane: %15^@

Is there a way to ignore this error?
Can it be ignored by default? (i don't think this error is very useful when using VimuxCloseOnExit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions