Skip to content

Commit

Permalink
Use TMUX_PANE for target.
Browse files Browse the repository at this point in the history
Makes the script work when you have multiple sessions attached to the
same window(s).
  • Loading branch information
jamesoff committed Aug 13, 2016
1 parent b2e31e6 commit 88f80ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/tmux_navigator.vim
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function! s:TmuxAwareNavigate(direction)
catch /^Vim\%((\a\+)\)\=:E32/
endtry
endif
let args = 'select-pane -' . tr(a:direction, 'phjkl', 'lLDUR')
let args = 'select-pane -t ' . $TMUX_PANE . ' -' . tr(a:direction, 'phjkl', 'lLDUR')
silent call s:TmuxCommand(args)
if s:NeedsVitalityRedraw()
redraw!
Expand Down

0 comments on commit 88f80ea

Please sign in to comment.