From 6156160290973b8705c781101fadeeffca344383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Wed, 29 Apr 2015 15:02:26 +0200 Subject: [PATCH] Fix compatibility with older vim versions (#154) --- autoload/vimtex/latexmk.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimtex/latexmk.vim b/autoload/vimtex/latexmk.vim index 19e8149..f5a4447 100644 --- a/autoload/vimtex/latexmk.vim +++ b/autoload/vimtex/latexmk.vim @@ -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]