Permalink
Browse files

Escape the % in the tmux select-pane -t command to prevent process su…

…bstitution by fish (#150)

Fixes #148.
  • Loading branch information...
1 parent 0c676d8 commit e79d4c0c24c43d3ada283b1f5a1b8fa6cf820a70 @scolby33 scolby33 committed with blueyed Sep 3, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/tmux_navigator.vim
@@ -78,7 +78,7 @@ function! s:TmuxAwareNavigate(direction)
catch /^Vim\%((\a\+)\)\=:E141/ " catches the no file name error
endtry
endif
- let args = 'select-pane -t ' . $TMUX_PANE . ' -' . tr(a:direction, 'phjkl', 'lLDUR')
+ let args = 'select-pane -t ' . shellescape($TMUX_PANE) . ' -' . tr(a:direction, 'phjkl', 'lLDUR')
silent call s:TmuxCommand(args)
if s:NeedsVitalityRedraw()
redraw!

0 comments on commit e79d4c0

Please sign in to comment.