the VimuxTogglePane function was not working properly, e.g. -s and -t flags were interchanged.
Changed _VimuxNearestIndex to make sure vimux does not use a pane hosting a pts for which the process running is not in the list g:VimuxShells, (default ["bash","zsh"]). This makes sure we don't send random keys to a random program open in the nearest pane. If the runner type is "window", a pane will only be valid if it is the only pane of the window, and the window is not the same as the one of the vim program.
g:VimuxRunnerIndex is changed to a list that looks like [window,pane] and functions that take the runner index are given the joined string, which works in all cases regardless of "window" or "pane" runner type.
the VimuxTogglePane function was not working properly, e.g. -s and -t flags were interchanged.
Changed _VimuxNearestIndex to make sure vimux does not use a pane hosting a pts for which the process running is not in the list g:VimuxShells, (default ["bash","zsh"]). This makes sure we don't send random keys to a random program open in the nearest pane. If the runner type is "window", a pane will only be valid if it is the only pane of the window, and the window is not the same as the one of the vim program.
g:VimuxRunnerIndex is changed to a list that looks like [window,pane] and functions that take the runner index are given the joined string, which works in all cases regardless of "window" or "pane" runner type.