diff --git a/plugin/vimux.vim b/plugin/vimux.vim index cf13596..18d0004 100644 --- a/plugin/vimux.vim +++ b/plugin/vimux.vim @@ -159,7 +159,7 @@ function! _VimuxNearestIndex() let views = split(system("tmux list-"._VimuxRunnerType()."s"), "\n") for view in views - if match(view, "(active)") != -1 + if match(view, "(active)") == -1 return split(view, ":")[0] endif endfor