vimux icon indicating copy to clipboard operation
vimux copied to clipboard

Ignore 'pane already closed' error in `VimuxCloseOnExit`

Open remko opened this issue 1 year ago • 1 comments

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)

remko avatar Dec 06 '24 09:12 remko

Thanks for the report!

mvanderkamp avatar Dec 08 '24 02:12 mvanderkamp

This was resolved by #237

mvanderkamp avatar Sep 13 '25 09:09 mvanderkamp