From b818cca2971a1b4789feda496b05eb4a9a9766b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Sat, 20 Jun 2015 19:23:32 +0200 Subject: [PATCH] Ensure pids are stored as numbers --- autoload/vimtex/latexmk.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vimtex/latexmk.vim b/autoload/vimtex/latexmk.vim index 74cddbb..dd656c1 100644 --- a/autoload/vimtex/latexmk.vim +++ b/autoload/vimtex/latexmk.vim @@ -462,9 +462,9 @@ function! s:latexmk_set_pid() " {{{1 if has('win32') let pidcmd = 'tasklist /fi "imagename eq latexmk.exe"' let pidinfo = split(system(pidcmd), '\n')[-1] - let b:vimtex.pid = split(pidinfo,'\s\+')[1] + let b:vimtex.pid = str2nr(split(pidinfo,'\s\+')[1]) else - let b:vimtex.pid = system('pgrep -nf "^perl.*latexmk"')[:-2] + let b:vimtex.pid = str2nr(system('pgrep -nf "^perl.*latexmk"')[:-2]) endif endfunction