Revision: 1048
http://vim-latex.svn.sourceforge.net/vim-latex/?rev=1048&view=rev
Author: tmaas
Date: 2009-03-11 16:11:25 +0000 (Wed, 11 Mar 2009)
Log Message:
-----------
Patch by William (B.J.) Snow Orvis:
Do not prepend '-a ' to s:viewer everytime Tex_ViewLaTeX() is called, only add
it to the 'open' command if needed.
Modified Paths:
--------------
trunk/vimfiles/ftplugin/latex-suite/compiler.vim
Modified: trunk/vimfiles/ftplugin/latex-suite/compiler.vim
===================================================================
--- trunk/vimfiles/ftplugin/latex-suite/compiler.vim 2009-03-11 15:08:58 UTC (rev 1047)
+++ trunk/vimfiles/ftplugin/latex-suite/compiler.vim 2009-03-11 16:11:25 UTC (rev 1048)
@@ -254,9 +254,11 @@
elseif (has('macunix') && Tex_GetVarValue('Tex_TreatMacViewerAsUNIX') != 1)
if strlen(s:viewer)
- let s:viewer = '-a '.s:viewer
+ let appOpt = '-a '
+ else
+ let appOpt = ''
endif
- let execString = 'open '.s:viewer.' $*.'.s:target
+ let execString = 'open '.appOpt.s:viewer.' $*.'.s:target
else
" taken from Dimitri Antoniou's tip on vim.sf.net (tip #225).
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|