Revision: 1102
http://vim-latex.svn.sourceforge.net/vim-latex/?rev=1102&view=rev
Author: tmaas
Date: 2010-01-28 23:49:04 +0000 (Thu, 28 Jan 2010)
Log Message:
-----------
fix xdvi with sourceposition and filenames starting with a digit
- If the .tex filename starts with a digit, a space needs to be added to the
xdvi commandline, with is optional otherwise. Bug reported by Jens Mueller.
Modified Paths:
--------------
trunk/vimfiles/ftplugin/latex-suite/compiler.vim
Modified: trunk/vimfiles/ftplugin/latex-suite/compiler.vim
===================================================================
--- trunk/vimfiles/ftplugin/latex-suite/compiler.vim 2010-01-28 23:30:56 UTC (rev 1101)
+++ trunk/vimfiles/ftplugin/latex-suite/compiler.vim 2010-01-28 23:49:04 UTC (rev 1102)
@@ -379,7 +379,7 @@
\ exists('v:servername') &&
\ (viewer == "xdvi" || viewer == "xdvik")
- let execString = 'silent! !'.viewer.' -name xdvi -sourceposition '.line('.').expand("%").
+ let execString = 'silent! !'.viewer.' -name xdvi -sourceposition "'.line('.').' '.expand("%").'"'.
\ ' -editor "gvim --servername '.v:servername.' --remote-silent +\%l \%f" '.
\ mainfnameRoot.'.dvi'
@@ -389,7 +389,7 @@
elseif (viewer == "xdvi" || viewer == "xdvik" )
- let execString = 'silent! !'.viewer.' -name xdvi -sourceposition '.line('.').expand("%").' '.mainfnameRoot.'.dvi'
+ let execString = 'silent! !'.viewer.' -name xdvi -sourceposition "'.line('.').' '.expand("%").'" '.mainfnameRoot.'.dvi'
endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|