Stop Vimux from spewing garbage text

This commit is contained in:
Alex Ozer 2014-04-25 21:41:51 -04:00
parent cf6b8c08db
commit 54858144f9

View File

@ -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