From f4d9f99f67189aa5725fdfc4c13fd33089446ccc Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Fri, 13 Jan 2012 09:32:02 +0000 Subject: [PATCH] fix a bug with the key combos on the comment menu Previously the maps on the menus werent changing when mapleader was changed - this was because we were looking for a local mapleader var instead of global --- plugin/NERD_commenter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 2034ac5..787445a 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -2709,7 +2709,7 @@ function! s:CreateMaps(modes, target, desc, combo) \ g:NERDMenuMode, '') let menu_command = 'menu ' . menuRoot . '.' . escape(a:desc, ' ') if strlen(a:combo) - let leader = exists('mapleader') ? mapleader : '\' + let leader = exists('g:mapleader') ? g:mapleader : '\' let menu_command .= '' . escape(leader, '\') . a:combo endif let menu_command .= ' ' . (strlen(a:combo) ? plug : a:target)