preservim / vimux

easily interact with tmux from vim
MIT License
2.2k stars 159 forks source link

Identify a pane by its window and its pane index #97

Closed ton closed 10 years ago

ton commented 10 years ago

By identifying a pane by both its window and pane index, VimuxCloseRunner() will always close the correct pane, even in case VimuxCloseRunner() is called from a Vim instance in a different window than the current window.

This fixes closing a pane in the current window from a VimuxCloseRunner() call executed in a Vim instance in a different window. I'm sending Vim commands to a Vim server from a Vimux runner, that is the reason why I encounter this issue.

benmills commented 10 years ago

Thanks for the PR! I've definitely encountered this issue before.