Fix minor stupid bug

This commit is contained in:
Karl Yngve Lervåg 2016-10-19 12:59:15 +02:00
parent d023d776a5
commit ab9087a8a1

View File

@ -91,9 +91,6 @@ endfunction
function! vimtex#imaps#init_buffer() " {{{1
if !g:vimtex_imaps_enabled | return | endif
" Container for wrapper contexts
let b:vimtex_context = {}
"
" Create imaps
"
@ -181,6 +178,9 @@ function! s:create_map(map) " {{{1
if has_key(a:map, 'context')
execute 'let l:key = "' . escape(l:lhs, '<') . '"'
let l:key .= a:map.rhs
if !exists('b:vimtex_context')
let b:vimtex_context = {}
endif
let b:vimtex_context[l:key] = a:map.context
endif