~dricottone/vim-markdown-preview

4925772576d824b2f8e8bdb176bc357e7ed8a9ed — Jamshed Vesuna 7 years ago 2cee512 + 46cd876
Merge pull request #49 from bikeNomad/add-quoting-to-osascript-command-lines

Added quoting to osascript command lines
1 files changed, 2 insertions(+), 2 deletions(-)

M plugin/vim-markdown-preview.vim
M plugin/vim-markdown-preview.vim => plugin/vim-markdown-preview.vim +2 -2
@@ 83,11 83,11 @@ function! Vim_Markdown_Preview()

  if g:vmp_osname == 'mac'
    if g:vim_markdown_preview_browser == "Google Chrome"
      let b:vmp_preview_in_browser = system('osascript ' . g:vmp_search_script)
      let b:vmp_preview_in_browser = system('osascript "' . g:vmp_search_script . '"')
      if b:vmp_preview_in_browser == 1
        call system('open -g /tmp/vim-markdown-preview.html')
      else
        call system('osascript ' . g:vmp_activate_script)
        call system('osascript "' . g:vmp_activate_script . '"')
      endif
    else
      call system('open -g /tmp/vim-markdown-preview.html')