mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -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 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)
|
||||||
|
|||||||
Reference in New Issue
Block a user