Fixed syntax for fish shell (fixes #148)
This commit is contained in:
parent
7ac9370576
commit
c21fdb4369
@ -375,8 +375,12 @@ 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)
|
||||||
|
if fnamemodify(&shell, ':t') ==# 'fish'
|
||||||
|
let cmd .= '; and set max_print_line 2000; and latexmk'
|
||||||
|
else
|
||||||
let cmd .= ' && max_print_line=2000 latexmk'
|
let cmd .= ' && max_print_line=2000 latexmk'
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
let cmd .= ' ' . g:vimtex_latexmk_options
|
let cmd .= ' ' . g:vimtex_latexmk_options
|
||||||
let cmd .= ' -e ' . shellescape('$pdflatex =~ s/ / -file-line-error /')
|
let cmd .= ' -e ' . shellescape('$pdflatex =~ s/ / -file-line-error /')
|
||||||
|
Loading…
Reference in New Issue
Block a user