Fixed syntax for fish shell (fixes #148)

This commit is contained in:
Karl Yngve Lervåg 2015-04-07 10:11:36 +02:00
parent 7ac9370576
commit c21fdb4369

View File

@ -375,7 +375,11 @@ function! s:latexmk_build_cmd(data) " {{{1
let cmd .= ' && set max_print_line=2000 & latexmk' let cmd .= ' && set max_print_line=2000 & latexmk'
else else
let cmd = 'cd ' . shellescape(a:data.root) let cmd = 'cd ' . shellescape(a:data.root)
let cmd .= ' && max_print_line=2000 latexmk' if fnamemodify(&shell, ':t') ==# 'fish'
let cmd .= '; and set max_print_line 2000; and latexmk'
else
let cmd .= ' && max_print_line=2000 latexmk'
endif
endif endif
let cmd .= ' ' . g:vimtex_latexmk_options let cmd .= ' ' . g:vimtex_latexmk_options