[Vim-latex-cvs] SF.net SVN: vim-latex: [1007] trunk/vimfiles/ftplugin/latex-suite
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2006-03-29 06:11:10
|
Revision: 1007 Author: srinathava Date: 2006-03-28 22:11:01 -0800 (Tue, 28 Mar 2006) ViewCVS: http://svn.sourceforge.net/vim-latex/?rev=1007&view=rev Log Message: ----------- Bug: Using <S-F5> to change \begin{eqnarray} 2 = 3 \label{first} \\ 4 = 5 \end{eqnarray} to an \begin{align}...\end{align} inserts \nonumber's. Why: It was assumed that we will only change starred environments (i.e, ones which will not be numbered) into unstarred environments. Fix: Only insert \nonumber if the original environment was starred and the new environment is not. Ofcourse, its not obvious that this is the right thing to do. It feels that someone would convert a previously starred environment into a starred one precisely to give it a label or something similar. Why increase the work required by inserting \nonumber? More feedback needed. For now, I'm just fixing the obvious bug. Modified Paths: -------------- trunk/vimfiles/ftplugin/latex-suite/envmacros.vim trunk/vimfiles/ftplugin/latex-suite/version.vim Modified: trunk/vimfiles/ftplugin/latex-suite/envmacros.vim =================================================================== --- trunk/vimfiles/ftplugin/latex-suite/envmacros.vim 2006-03-28 19:15:18 UTC (rev 1006) +++ trunk/vimfiles/ftplugin/latex-suite/envmacros.vim 2006-03-29 06:11:01 UTC (rev 1007) @@ -730,11 +730,11 @@ let change_env = PromptForEnvironment('What do you want to change it to? ') if change_env == 'eqnarray' - call <SID>Change('eqnarray', 1, '', 1) + call <SID>Change('eqnarray', 1, '', env_name =~ '\*$') + elseif change_env == 'align' + call <SID>Change('align', 1, '', env_name =~ '\*$') elseif change_env == 'eqnarray*' call <SID>Change('eqnarray*', 0, '\\nonumber', 0) - elseif change_env == 'align' - call <SID>Change('align', 1, '', 1) elseif change_env == 'align*' call <SID>Change('align*', 0, '\\nonumber', 0) elseif change_env == 'equation*' Modified: trunk/vimfiles/ftplugin/latex-suite/version.vim =================================================================== --- trunk/vimfiles/ftplugin/latex-suite/version.vim 2006-03-28 19:15:18 UTC (rev 1006) +++ trunk/vimfiles/ftplugin/latex-suite/version.vim 2006-03-29 06:11:01 UTC (rev 1007) @@ -24,7 +24,7 @@ " "stabilize" that version by releasing a few pre-releases and then " keep that as a stable point. function! Tex_Version() - return "Latex-Suite: version 1.8.15" + return "Latex-Suite: version 1.8.16" endfunction com! -nargs=0 TVersion echo Tex_Version() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |