vimux
vimux copied to clipboard
Hotfix for issue from PR #210
#210 was missing some safety checks. See this comment. This PR adds guardrails to make sure that:
- If
VimuxUseNearest
andVimuxRunnerQuery
are both false/empty, we definitely don't try to re-use an existing pane/window. - If we do use a
VimuxRunnerQuery
, and that query happens to end up selecting the current pane (the one running vim), we won't use it.
I'm going to do a few more manual tests that everything is working correctly with this, so please don't merge this yet.
Okay, as far as I can tell everything is working correctly. I'm still not sure what exactly went wrong for newer tmux/neovim versions but it sounds like these guardrails do the trick.