mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -05:00
Blow up if user assigns string to map variable
This commit is contained in:
@@ -113,7 +113,7 @@ function! s:map(mode, lhs, rhs, ...) abort
|
||||
let head = a:lhs
|
||||
let tail = ''
|
||||
let keys = get(g:, a:mode.'remap', {})
|
||||
if type(keys) != type({})
|
||||
if type(keys) == type([])
|
||||
return
|
||||
endif
|
||||
while !empty(head)
|
||||
|
||||
Reference in New Issue
Block a user