From ab9087a8a1bf8eb97dea9983de4ad3b1d98547b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Wed, 19 Oct 2016 12:59:15 +0200 Subject: [PATCH] Fix minor stupid bug --- autoload/vimtex/imaps.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/vimtex/imaps.vim b/autoload/vimtex/imaps.vim index 55bd443..926ca3a 100644 --- a/autoload/vimtex/imaps.vim +++ b/autoload/vimtex/imaps.vim @@ -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