Skip to content

Commit 6594afd

Browse files
committed
Use runner window index when converting to window
1 parent 905e002 commit 6594afd

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
@@ -87,7 +87,7 @@ function! VimuxTogglePane()
8787
call system("tmux join-pane -d -s ".g:VimuxRunnerIndex." -p "._VimuxOption("g:VimuxHeight", 20))
8888
let g:VimuxRunnerType = "pane"
8989
elseif _VimuxRunnerType() == "pane"
90-
call system("tmux break-pane -d -t ".g:VimuxRunnerIndex)
90+
let g:VimuxRunnerIndex=substitute(system("tmux break-pane -d -t ".g:VimuxRunnerIndex." -P -F '#{window_index}'"), "\n", "", "")
9191
let g:VimuxRunnerType = "window"
9292
endif
9393
endif

0 commit comments

Comments
 (0)