I am resubmitting my patch from a few weeks ago with [PATCH] in the subject line. In both the most recent release (latexSuite20060325.tar.gz) and in the SVN trunk, calling Tex_ViewLaTeX() multiple times on Mac OS X causes the s:viewer variable to get '-a ' prepended to it each time Tex_ViewLaTeX() is called. This means that Tex_ViewLaTeX() only works every other time it is called. My patch fixes this by changing the code that constructs the `open' command to insert the '-a ' string without modifying s:viewer.
Attached should be two patches: * against_release.diff is a patch against the latexSuite20060325.tar.gz archive hosted on the http://vim-latex.sourceforge.net download page. * against_trunk.diff is the same patch, but against the subversion trunk. Thanks to all others who have contributed to this great project! -- ...................................................................... William (B.J.) Snow Orvis PGP Fingerprint: [email protected] E6DC E687 EBB7 E99C 1BCE http://ouroboros.homedns.org D04F 057B 0CD0 8A49 3E98 Random link: xkcd - A webcomic of romance, sarcasm, math, and language: http://xkcd.com/
diff --git a/ftplugin/latex-suite/compiler.vim
b/ftplugin/latex-suite/compiler.vim
index 245f6cd..e97f605 100644
--- a/ftplugin/latex-suite/compiler.vim
+++ b/ftplugin/latex-suite/compiler.vim
@@ -247,9 +247,11 @@ function! Tex_ViewLaTeX()
elseif has('macunix')
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).
diff --git a/ftplugin/latex-suite/compiler.vim
b/ftplugin/latex-suite/compiler.vim
index 33a766a..298c485 100644
--- a/ftplugin/latex-suite/compiler.vim
+++ b/ftplugin/latex-suite/compiler.vim
@@ -254,9 +254,11 @@ function! Tex_ViewLaTeX()
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).
pgpiRq02AbDxW.pgp
Description: PGP signature
------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H
_______________________________________________ Vim-latex-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
