Skip to content

Commit ca10dc1

Browse files
committed
Default tmux height to quickfix height
Must not have been paying close attention when merging the original changeset because forcing users to set both options is stupid. References #177
1 parent de1c879 commit ca10dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/dispatch/tmux.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function! dispatch#tmux#make(request) abort
4848
\ . ' > ' . a:request.file . '.complete'] : [])))
4949

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

0 commit comments

Comments
 (0)