From edad2d54e55048dee390c35c70316b49a1f46d88 Mon Sep 17 00:00:00 2001 From: Aleppi Date: Fri, 20 Apr 2018 19:42:45 +0200 Subject: [PATCH 1/2] Added POSIX-compliant updating of mupdf --- plugin/latexlivepreview.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/latexlivepreview.vim b/plugin/latexlivepreview.vim index f4a315a..d2a176b 100644 --- a/plugin/latexlivepreview.vim +++ b/plugin/latexlivepreview.vim @@ -207,6 +207,10 @@ EEOOFF lcd - + if s:previewer == 'mupdf' + let b:livepreviewer_buf_data['run_cmd'] .= ' && kill -s HUP $(ps a | env POSIXLY_CORRECT=1 grep -F mupdf)' + endif + let b:livepreview_buf_data['preview_running'] = 1 endfunction From 294515db0260f51f2a1651f95fbda7b392b03857 Mon Sep 17 00:00:00 2001 From: Aleppi Date: Fri, 20 Apr 2018 19:57:39 +0200 Subject: [PATCH 2/2] Fixed minor typo --- plugin/latexlivepreview.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/latexlivepreview.vim b/plugin/latexlivepreview.vim index d2a176b..e946b79 100644 --- a/plugin/latexlivepreview.vim +++ b/plugin/latexlivepreview.vim @@ -208,7 +208,7 @@ EEOOFF lcd - if s:previewer == 'mupdf' - let b:livepreviewer_buf_data['run_cmd'] .= ' && kill -s HUP $(ps a | env POSIXLY_CORRECT=1 grep -F mupdf)' + let b:livepreview_buf_data['run_cmd'] .= ' && kill -s HUP $(ps a | env POSIXLY_CORRECT=1 grep -F mupdf)' endif let b:livepreview_buf_data['preview_running'] = 1