[Vim-latex-cvs] vimfiles/ftplugin/latex-suite envmacros.vim,1.15,1.16
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2002-12-30 11:12:05
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv9478 Modified Files: envmacros.vim Log Message: Bug: Pressing <F5> and then pressing <enter> without choosing anything inserts 0 (zero) Cause: Tex_DoEnvironment() doesn't account for the fact that the user does not choose anything. Therefore, vim by default returns zero. Solution: Make Tex_DoEnvironment return '' if the user hasn't chosen anything. Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** envmacros.vim 30 Dec 2002 08:59:30 -0000 1.15 --- envmacros.vim 30 Dec 2002 11:12:02 -0000 1.16 *************** *** 3,7 **** " Author: Mikolaj Machowski " Created: Tue Apr 23 08:00 PM 2002 PST ! " Last Change: Mon Dec 30 12:00 AM 2002 PST " " Description: mappings/menus for environments. --- 3,7 ---- " Author: Mikolaj Machowski " Created: Tue Apr 23 08:00 PM 2002 PST ! " Last Change: Mon Dec 30 03:00 AM 2002 PST " " Description: mappings/menus for environments. *************** *** 555,558 **** --- 555,560 ---- if env != '' return Tex_PutEnvironment(env) + else + return '' endif else |