mirror of
https://github.com/vim-latex/vim-latex.git
synced 2026-06-09 15:37:14 +02:00
Bug: More debugging the debug functions! Ahh... The irony. The
Tex_PrintDebug() function wasn't working well.
Cause/Solution: used a:pattern instead of pattern
Bug: Refer to 1.17 of envmacros.vim
Solution: Used the Tex_SetFastEnvironmentMaps() from envmacros.vim in order
to set buffer local mappings for the <F5> and <S-F5> keys for
every tex file opened.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
" Maintainer: Srinath Avadhanula
|
||||
" Email: srinath@fastmail.fm
|
||||
" URL:
|
||||
" Last Change: Fri Jan 03 04:00 PM 2003 PST
|
||||
" Last Change: Sun Jan 05 12:00 AM 2003 PST
|
||||
"
|
||||
" Help:
|
||||
" Changes: {{{
|
||||
@@ -450,7 +450,7 @@ function! Tex_PrintDebug(...)
|
||||
let pattern = ''
|
||||
endif
|
||||
if exists('s:debugString_'.pattern)
|
||||
echo s:debugString_{a:pattern}
|
||||
echo s:debugString_{pattern}
|
||||
endif
|
||||
endfunction " }}}
|
||||
" Tex_ClearDebug: clears the s:debugString string {{{
|
||||
@@ -509,6 +509,11 @@ function! <SID>SetTeXOptions()
|
||||
if g:Tex_SmartKeyDot
|
||||
inoremap <buffer> <silent> . <C-R>=<SID>SmartDots()<CR>
|
||||
endif
|
||||
call Tex_Debug('checking to see if Tex_SetFastEnvironmentMaps needs to be called.', 'main')
|
||||
if g:Tex_PromptedEnvironments != '' || g:Tex_HotKeyMappings != ''
|
||||
call Tex_Debug('calling Tex_SetFastEnvironmentMaps', 'main')
|
||||
call Tex_SetFastEnvironmentMaps()
|
||||
endif
|
||||
|
||||
" viewing/searching
|
||||
if !hasmapto('RunLaTeX')
|
||||
|
||||
Reference in New Issue
Block a user