Fix #558: escape backslash for imaps

This commit is contained in:
Karl Yngve Lervåg 2016-09-17 12:28:52 +02:00
parent e238b4e345
commit 4df9f85e45

View File

@ -174,7 +174,7 @@ function! s:create_map(map) " {{{1
endif
silent execute 'inoremap <expr><silent><buffer>' l:lhs
\ l:wrapper . '("' . l:lhs . '", ' . string(a:map.rhs) . ')'
\ l:wrapper . '("' . escape(l:lhs, '\') . '", ' . string(a:map.rhs) . ')'
let s:created_maps += [a:map]
endfunction