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)
|
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
|
" If the PID is 0, then search for existing processes
|
||||||
"
|
"
|
||||||
@ -765,10 +770,9 @@ function! s:check_system_compatibility() " {{{1
|
|||||||
"
|
"
|
||||||
" Check for required executables
|
" Check for required executables
|
||||||
"
|
"
|
||||||
if has('win32')
|
let required = ['latexmk']
|
||||||
let required = ['latexmk']
|
if g:vimtex_latexmk_continuous && !has('win32')
|
||||||
else
|
let required += ['pgrep']
|
||||||
let required = ['latexmk', 'pgrep']
|
|
||||||
endif
|
endif
|
||||||
let missing = filter(required, '!executable(v:val)')
|
let missing = filter(required, '!executable(v:val)')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user