Update of /cvsroot/vim-latex/vimfiles/plugin
In directory sc8-pr-cvs1:/tmp/cvs-serv32279
Modified Files:
imaps.vim
Log Message:
Since IMAP() is used so often, we do not want the Debug statements to cause
a memory leak. Otherwise the debug string will get generally very huge on
long usage of latex-suite/imaps.
Index: imaps.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** imaps.vim 3 Jan 2003 08:42:16 -0000 1.19
--- imaps.vim 4 Jan 2003 00:44:56 -0000 1.20
***************
*** 8,12 ****
" while preserving filetype indentation.
"
! " Last Change: Fri Jan 03 12:00 AM 2003 PST
"
" Documentation: {{{
--- 8,12 ----
" while preserving filetype indentation.
"
! " Last Change: Fri Jan 03 04:00 PM 2003 PST
"
" Documentation: {{{
***************
*** 630,634 ****
--- 630,642 ----
" IMAP_Debug: interface to Tex_Debug if available, otherwise emulate it {{{
" Description:
+ " Do not want a memory leak! Set this to zero so that imaps always
+ " starts out in a non-debugging mode.
+ if !exists('g:Imap_Debug')
+ let g:Imap_Debug = 0
+ endif
function! IMAP_Debug(string, pattern)
+ if !g:Imap_Debug
+ return
+ endif
if exists('*Tex_Debug')
call Tex_Debug(a:string, a:pattern)
|