Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex
In directory sc8-pr-cvs1:/tmp/cvs-serv16577
Modified Files:
texviewer.vim
Log Message:
Bug: More stupid windows issues. Sometimes,
getcwd() = 'c:\path\to\file' and expand('%:p:h') = 'c:/path/to/file'
which causes s:searchdirectory to become '' causing Tex_completion to
search as
fgrep \label /*.tex
Solution:
s:searchdirectory = expand('%:p:h') instead of expand('%:h')
Index: texviewer.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/texviewer.vim,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** texviewer.vim 8 Jun 2003 22:30:39 -0000 1.19
--- texviewer.vim 9 Jun 2003 03:34:26 -0000 1.20
***************
*** 43,47 ****
if getcwd() != expand("%:p:h")
! let s:search_directory = expand("%:h") . '/'
else
let s:search_directory = ''
--- 43,47 ----
if getcwd() != expand("%:p:h")
! let s:search_directory = expand("%:p:h") . '/'
else
let s:search_directory = ''
***************
*** 82,87 ****
--- 82,89 ----
let s:type = substitute(s:curline, pattern, '\1', 'e')
let s:typeoption = substitute(s:curline, pattern, '\2', 'e')
+ call Tex_Debug('s:type = '.s:type.', typeoption = '.s:typeoption)
if exists("s:type") && s:type =~ 'ref'
+ call Tex_Debug("silent! grep! '\\label{".s:prefix."' ".s:search_directory.'*.tex', 'view')
exe "silent! grep! '\\label{".s:prefix."' ".s:search_directory.'*.tex'
call <SID>Tex_c_window_setup()
|