Revision: 1104
http://vim-latex.svn.sourceforge.net/vim-latex/?rev=1104&view=rev
Author: tmaas
Date: 2010-01-29 00:38:56 +0000 (Fri, 29 Jan 2010)
Log Message:
-----------
Fix the cite completion: \cite[\cf{abcd}]{<F9>
Author: Johann Felix Soden <jo...@gm...>
Bug-Debian: http://bugs.debian.org/449016
Modified Paths:
--------------
trunk/vimfiles/ftplugin/latex-suite/texviewer.vim
Modified: trunk/vimfiles/ftplugin/latex-suite/texviewer.vim
===================================================================
--- trunk/vimfiles/ftplugin/latex-suite/texviewer.vim 2010-01-29 00:01:51 UTC (rev 1103)
+++ trunk/vimfiles/ftplugin/latex-suite/texviewer.vim 2010-01-29 00:38:56 UTC (rev 1104)
@@ -68,7 +68,7 @@
" from which we need to extract
" s:type = 'psfig'
" s:typeoption = '[option=value]'
- let pattern = '.*\\\(\w\{-}\)\(\[.\{-}\]\)\?{\(\S\+\)\?$'
+ let pattern = '.*\\\(\w\{-}\)\(\[.\{-}\]\)*{\([^ [\]\t]\+\)\?$'
if s:curline =~ pattern
let s:type = substitute(s:curline, pattern, '\1', 'e')
let s:typeoption = substitute(s:curline, pattern, '\2', 'e')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|