Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv10403
Modified Files:
main.vim
Log Message:
Fixed problem with Tex_FindInRtp not properly returning first name of template/macro name - whole path, not only core name (reported by Lin-bo Zhang)
Index: main.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** main.vim 9 Oct 2003 21:52:06 -0000 1.51
--- main.vim 30 Oct 2003 22:49:13 -0000 1.52
***************
*** 623,630 ****
" Return list of macros/templates separated with ,
let list = globpath(&rtp, "ftplugin/latex-suite/".a:directory."/*")
- let list = substitute(list,'\n',',','g')
- let list = substitute(list,'^\|,[^,]*/',',','g')
- let list = substitute(list,'^,', '', '')
let list = substitute(list,'\.tex', '', 'ge')
return list
endif
--- 623,630 ----
" Return list of macros/templates separated with ,
let list = globpath(&rtp, "ftplugin/latex-suite/".a:directory."/*")
let list = substitute(list,'\.tex', '', 'ge')
+ let list = substitute(list,'^\|\n',',','g')
+ let list = substitute(list,',[^,]*/',',','g')
+ let list = substitute(list,'^,', '', '')
return list
endif
|