Should return view name if one is active

fix-tmux-next-3dot4
Josh Davis 11 years ago
parent ba2b2050b0
commit 17358e51ab

@ -143,7 +143,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

Loading…
Cancel
Save