From 423245ee578d4121952accdb507c73ad9f0c4828 Mon Sep 17 00:00:00 2001 From: Robert Cranston <rcrnstn@rcrnstn.net> Date: Wed, 1 Nov 2017 03:24:31 +0100 Subject: [PATCH 4/5] Do not include browser name in xdotool search --- plugin/vim-markdown-preview.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/vim-markdown-preview.vim b/plugin/vim-markdown-preview.vim index e186d93..2ff9b3d 100644 --- a/plugin/vim-markdown-preview.vim +++ b/plugin/vim-markdown-preview.vim @@ -75,7 +75,7 @@ function! Vim_Markdown_Preview() 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'") if !chrome_wid if g:vim_markdown_preview_use_xdg_open == 1 call system('xdg-open /tmp/vim-markdown-preview.html 1>/dev/null 2>/dev/null &') @@ -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'") 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 &') -- 2.17.1