Fix #558: escape backslash for imaps
This commit is contained in:
parent
e238b4e345
commit
4df9f85e45
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user