Skip to content

Commit

Permalink
Fix bug when updating with xdotool in local folder
Browse files Browse the repository at this point in the history
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 JamshedVesuna#84.
  • Loading branch information
Amudtogal committed Jan 31, 2019
1 parent 9b3ec41 commit 8fbe7c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/vim-markdown-preview.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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 &')
Expand Down

0 comments on commit 8fbe7c8

Please sign in to comment.