imap_mappings: do not swallow leader outside math
This commit is contained in:
parent
b9ddd1df7b
commit
ee523987ba
@ -49,7 +49,7 @@ function! vimtex#imaps#add_map(map) " {{{1
|
||||
|
||||
" Apply wrapper
|
||||
if l:wrapper !=# '' && exists('*' . l:wrapper)
|
||||
let l:rhs = call(l:wrapper, [l:lhs, l:rhs])
|
||||
let l:rhs = call(l:wrapper, [l:leader . l:lhs, l:rhs])
|
||||
endif
|
||||
|
||||
" Add mapping
|
||||
|
Loading…
Reference in New Issue
Block a user