Fix compatibility with older vim versions (#154)

This commit is contained in:
Karl Yngve Lervåg 2015-04-29 15:02:26 +02:00
parent 299f51c0c7
commit 6156160290

View File

@ -431,7 +431,7 @@ endfunction
function! s:latexmk_set_pid(data) " {{{1
if has('win32')
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]
else
let a:data.pid = system('pgrep -nf "^perl.*latexmk"')[:-2]