Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11534
Modified Files:
compiler.vim main.vim
Log Message:
Bug: In windows, searching from a file which is included into the main
file but lies in a subdirectory under the main file doesn't work. i.e,
if you have
main.tex
\include{subdirectory/file.tex}
and you open subdirectory/file.tex and perform \ls from there, then it
doesn't work.
Why: Used the source position as expand('%:p:t') which doesn't work if the
file in which we are searching doesn't lie in the same directory as
the main file.
Fix: Use expand('%') instead which automatically provides a relative path.
TODO: Should we have used Tex_RelPath from texviewer.vim to also
handle cases where the included file lies above the main file? Highly
improbable of course...
Index: compiler.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** compiler.vim 6 Jun 2004 23:21:25 -0000 1.68
--- compiler.vim 17 Jun 2004 03:32:34 -0000 1.69
***************
*** 349,353 ****
if has('win32')
! let execString = 'silent! !start '. viewer.' -s '.line('.').expand('%:p:t').' '.mainfnameRoot
else
--- 349,353 ----
if has('win32')
! let execString = 'silent! !start '. viewer.' -s '.line('.').expand('%').' '.mainfnameRoot
else
Index: main.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** main.vim 13 Jun 2004 18:12:40 -0000 1.68
--- main.vim 17 Jun 2004 03:32:34 -0000 1.69
***************
*** 606,610 ****
" keep that as a stable point.
function! Tex_Version()
! return "Latex-Suite: version 1.6.03"
endfunction
--- 606,610 ----
" keep that as a stable point.
function! Tex_Version()
! return "Latex-Suite: version 1.6.04"
endfunction
|