Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex
In directory sc8-pr-cvs1:/tmp/cvs-serv27044
Modified Files:
texviewer.vim
Log Message:
Bug: Using completion in the following situation: \cite{something,<F9>
does not work properly because "something" is considered the prefix.
Fix: change the s:prefix variable when we have a \cite command to support
multiple citations seperated by commas (SA)
Index: texviewer.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/texviewer.vim,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** texviewer.vim 29 Jun 2003 06:15:44 -0000 1.28
--- texviewer.vim 29 Jun 2003 08:31:04 -0000 1.29
***************
*** 106,109 ****
--- 106,110 ----
" TODO: Is there a way to clear the search-history w/o making a
" useless, inefficient search?
+ let s:prefix = matchstr(s:prefix, '\([^,]\+,\)\+\zs\([^,]\+\)\ze$')
silent! grep! ____HIGHLY_IMPROBABLE___ %
if g:Tex_RememberCiteSearch && exists('s:citeSearchHistory')
|