[Vim-latex-cvs] vimfiles/ftplugin/tex texviewer.vim,1.12,1.13
Brought to you by:
srinathava,
tmaas
|
From: <sri...@us...> - 2003-04-25 20:41:30
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex
In directory sc8-pr-cvs1:/tmp/cvs-serv3619
Modified Files:
texviewer.vim
Log Message:
Bug: Multiple \ref's in a single line would cause completion problems.
Cause: s:prefix in s:Tex_complete() was improperly calculated.
Fix: improve regexp for calculating s:prefix. Still a bit of a hack.
Index: texviewer.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/texviewer.vim,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** texviewer.vim 23 Apr 2003 17:28:32 -0000 1.12
--- texviewer.vim 25 Apr 2003 20:41:26 -0000 1.13
***************
*** 48,52 ****
" }}}
! " Tex_viewer: main function {{{
" Description:
"
--- 48,52 ----
" }}}
! " Tex_completion: main function {{{
" Description:
"
***************
*** 62,67 ****
let s:curfile = expand("%:p")
let s:curline = strpart(getline('.'), col('.') - 40, 40)
! let s:prefix = matchstr(s:curline, '{\zs.\{-}$')
! let s:type = matchstr(s:curline, '\\\zs.\{-}\ze{.\{-}$')
let s:typeoption = matchstr(s:type, '\zs[.*]\ze')
let s:type = substitute(s:type, '[.*', '', 'e')
--- 62,67 ----
let s:curfile = expand("%:p")
let s:curline = strpart(getline('.'), col('.') - 40, 40)
! let s:prefix = matchstr(s:curline, '.*{\zs.\{-}$')
! let s:type = matchstr(s:curline, '.*\\\zs.\{-}\ze{.\{-}$')
let s:typeoption = matchstr(s:type, '\zs[.*]\ze')
let s:type = substitute(s:type, '[.*', '', 'e')
|