Skip to content

Commit

Permalink
Disable unsupported tmux foreground builds
Browse files Browse the repository at this point in the history
Closes #171
  • Loading branch information
tpope committed May 12, 2016
1 parent fc8d1e6 commit 5f5c22c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/dispatch/tmux.vim
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ function! dispatch#tmux#handle(request) abort
endif

if a:request.action ==# 'make'
if !get(a:request, 'background', 0) && empty(v:servername) &&
\ !empty(''.session) && session !=# system('tmux display-message -p "#S"')[0:-2]
return 0
endif
return dispatch#tmux#make(a:request)
elseif a:request.action ==# 'start'
let command = 'tmux new-window -P -t '.shellescape(session.':')
Expand Down

0 comments on commit 5f5c22c

Please sign in to comment.