Permalink
Browse files

Use full file name path to open the pdf.

  • Loading branch information...
1 parent 5019853 commit 1ad8412190f6ea885606d387b72b19f11816248c @jalvesaq jalvesaq committed Sep 30, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 ftplugin/rnoweb.vim
View
6 ftplugin/rnoweb.vim
@@ -208,12 +208,12 @@ function! ROpenPDF()
if g:rplugin_pdfviewer == "none"
if g:vimrplugin_openpdf_quietly
- call SendCmdToR('vim.openpdf("' . expand("%:t:r") . ".pdf" . '", TRUE)')
+ call SendCmdToR('vim.openpdf("' . expand("%:p:r") . ".pdf" . '", TRUE)')
else
- call SendCmdToR('vim.openpdf("' . expand("%:t:r") . ".pdf" . '")')
+ call SendCmdToR('vim.openpdf("' . expand("%:p:r") . ".pdf" . '")')
endif
else
- let openlog = system(g:rplugin_pdfviewer . " '" . expand("%:t:r") . ".pdf" . "'")
+ let openlog = system(g:rplugin_pdfviewer . " '" . expand("%:p:r") . ".pdf" . "'")
if v:shell_error
let rlog = substitute(openlog, "\n", " ", "g")
let rlog = substitute(openlog, "\r", " ", "g")

0 comments on commit 1ad8412

Please sign in to comment.