Skip to content

Commit

Permalink
Default tmux height to quickfix height
Browse files Browse the repository at this point in the history
Must not have been paying close attention when merging the original
changeset because forcing users to set both options is stupid.

References #177
  • Loading branch information
tpope committed Jun 23, 2017
1 parent de1c879 commit ca10dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/dispatch/tmux.vim
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function! dispatch#tmux#make(request) abort
\ . ' > ' . a:request.file . '.complete'] : [])))

let title = shellescape(get(a:request, 'title', get(a:request, 'compiler', 'make')))
let height = get(g:, 'dispatch_tmux_height', 10)
let height = get(g:, 'dispatch_tmux_height', get(g:, 'dispatch_quickfix_height', 10))
if get(a:request, 'background', 0)
let cmd = 'new-window -d -n '.title
elseif has('gui_running') || empty($TMUX) || (!empty(''.session) && session !=# system('tmux display-message -p "#S"')[0:-2])
Expand Down

0 comments on commit ca10dc1

Please sign in to comment.