From 8fbe7c8565f1bec104ba2d161e4fe3554646df17 Mon Sep 17 00:00:00 2001 From: Simon Reichel Date: Thu, 31 Jan 2019 16:35:57 +0000 Subject: [PATCH] Fix bug when updating with xdotool in local folder As html with images is rendered into the local folder, the local preview function is used. However a ' was missing in the call of `xdotool search`, spawning new windows with every call (independent of the browser option). Closes #84. --- plugin/vim-markdown-preview.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/vim-markdown-preview.vim b/plugin/vim-markdown-preview.vim index 082c69f..75e16ef 100644 --- a/plugin/vim-markdown-preview.vim +++ b/plugin/vim-markdown-preview.vim @@ -129,7 +129,7 @@ function! Vim_Markdown_Preview_Local() endif if g:vmp_osname == 'unix' - let chrome_wid = system("xdotool search --name vim-markdown-preview.html - " . g:vim_markdown_preview_browser . "'") + let chrome_wid = system("xdotool search --name 'vim-markdown-preview.html - " . g:vim_markdown_preview_browser . "'") if !chrome_wid if g:vim_markdown_preview_use_xdg_open == 1 call system('xdg-open vim-markdown-preview.html 1>/dev/null 2>/dev/null &')