Ensure pids are stored as numbers
This commit is contained in:
parent
a7ca172143
commit
b818cca297
@ -462,9 +462,9 @@ function! s:latexmk_set_pid() " {{{1
|
|||||||
if has('win32')
|
if has('win32')
|
||||||
let pidcmd = 'tasklist /fi "imagename eq latexmk.exe"'
|
let pidcmd = 'tasklist /fi "imagename eq latexmk.exe"'
|
||||||
let pidinfo = split(system(pidcmd), '\n')[-1]
|
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
|
else
|
||||||
let b:vimtex.pid = system('pgrep -nf "^perl.*latexmk"')[:-2]
|
let b:vimtex.pid = str2nr(system('pgrep -nf "^perl.*latexmk"')[:-2])
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user