Skip to content

Commit 0228508

Browse files
committed
Merge pull request #75 from daviddavis/master
Fixing out of range error
2 parents 42772b7 + 1a0a8ab commit 0228508

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugin/vimux.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ endfunction
121121
function! _VimuxNearestPaneIndex()
122122
let panes = split(system("tmux list-panes"), "\n")
123123

124-
for i in panes
125-
if match(panes[i], "(active)") == -1
126-
return split(panes[i], ":")[0]
124+
for pane in panes
125+
if match(pane, "(active)") == -1
126+
return split(pane, ":")[0]
127127
endif
128128
endfor
129129

0 commit comments

Comments
 (0)