Skip to content

Commit 17358e5

Browse files
committed
Should return view name if one is active
1 parent ba2b205 commit 17358e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/vimux.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function! _VimuxNearestIndex()
143143
let views = split(system("tmux list-"._VimuxRunnerType()."s"), "\n")
144144

145145
for view in views
146-
if match(view, "(active)") == -1
146+
if match(view, "(active)") != -1
147147
return split(view, ":")[0]
148148
endif
149149
endfor

0 commit comments

Comments
 (0)