Don't require pgrep unless necessary
This commit is contained in:
parent
575b9b018f
commit
c132b3db24
@ -642,6 +642,11 @@ function! s:latexmk_init_pid() " {{{1
|
||||
"
|
||||
let b:vimtex.pid = get(b:vimtex, 'pid', 0)
|
||||
|
||||
"
|
||||
" Only search for PIDs if continuous mode is active
|
||||
"
|
||||
if !g:vimtex_latexmk_continuous | return | endif
|
||||
|
||||
"
|
||||
" If the PID is 0, then search for existing processes
|
||||
"
|
||||
@ -765,10 +770,9 @@ function! s:check_system_compatibility() " {{{1
|
||||
"
|
||||
" Check for required executables
|
||||
"
|
||||
if has('win32')
|
||||
let required = ['latexmk']
|
||||
else
|
||||
let required = ['latexmk', 'pgrep']
|
||||
if g:vimtex_latexmk_continuous && !has('win32')
|
||||
let required += ['pgrep']
|
||||
endif
|
||||
let missing = filter(required, '!executable(v:val)')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user