Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex
In directory sc8-pr-cvs1:/tmp/cvs-serv965
Modified Files:
texviewer.vim
Log Message:
bad use of matchstr() with s:type, use substitute() instead
Index: texviewer.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/texviewer.vim,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** texviewer.vim 11 Apr 2003 21:21:58 -0000 1.10
--- texviewer.vim 11 Apr 2003 23:31:10 -0000 1.11
***************
*** 65,69 ****
let s:type = matchstr(s:curline, '\\\zs.\{-}\ze{.\{-}$')
let s:typeoption = matchstr(s:type, '\zs[.*]\ze')
! let s:type = matchstr(s:type, '.\{-}\ze')
if exists("s:type") && s:type =~ 'ref'
--- 65,69 ----
let s:type = matchstr(s:curline, '\\\zs.\{-}\ze{.\{-}$')
let s:typeoption = matchstr(s:type, '\zs[.*]\ze')
! let s:type = substitute(s:type, '[.*', '', 'e')
if exists("s:type") && s:type =~ 'ref'
***************
*** 191,195 ****
exe g:Tex_ExplorerHeight.' wincmd _'
- let g:type = a:type
if a:type =~ 'includegraphics\|bibliography\|includefile'
--- 191,194 ----
|