Blow up if user assigns string to map variable

This commit is contained in:
Tim Pope
2018-05-15 23:11:13 -04:00
parent e0fa72363a
commit 0078c76106

View File

@@ -113,7 +113,7 @@ function! s:map(mode, lhs, rhs, ...) abort
let head = a:lhs let head = a:lhs
let tail = '' let tail = ''
let keys = get(g:, a:mode.'remap', {}) let keys = get(g:, a:mode.'remap', {})
if type(keys) != type({}) if type(keys) == type([])
return return
endif endif
while !empty(head) while !empty(head)