Fix compatibility with older vim versions (#154)
This commit is contained in:
parent
299f51c0c7
commit
6156160290
@ -431,7 +431,7 @@ endfunction
|
|||||||
function! s:latexmk_set_pid(data) " {{{1
|
function! s:latexmk_set_pid(data) " {{{1
|
||||||
if has('win32')
|
if has('win32')
|
||||||
let pidcmd = 'qprocess latexmk.exe'
|
let pidcmd = 'qprocess latexmk.exe'
|
||||||
let pidinfo = systemlist(pidcmd)[-1]
|
let pidinfo = split(system(pidcmd), '\n')[-1]
|
||||||
let a:data.pid = split(pidinfo,'\s\+')[-2]
|
let a:data.pid = split(pidinfo,'\s\+')[-2]
|
||||||
else
|
else
|
||||||
let a:data.pid = system('pgrep -nf "^perl.*latexmk"')[:-2]
|
let a:data.pid = system('pgrep -nf "^perl.*latexmk"')[:-2]
|
||||||
|
Loading…
Reference in New Issue
Block a user