From 0078c76106b4b4ddad8e8739057a3a6b1111d6c4 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 15 May 2018 23:11:13 -0400 Subject: [PATCH] Blow up if user assigns string to map variable --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 9227fa3..8bc21c2 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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)