From ad4ebaac93e3004a8a2f888c9f173e2f500d80e5 Mon Sep 17 00:00:00 2001 From: Yamamoto Yuji Date: Sat, 1 Feb 2014 20:56:40 +0900 Subject: [PATCH] correct invalid reference to MenuController I found an error when I tried to use [git_menu.vim](g:NERDTreeMenuController): ``` Error detected while processing function nerdtree#invokeKeyMap..91..90..52_showMenu..65..82: line 2: E121: Undefined variable: s:MenuController E15: Invalid expression: s:MenuController.New(self.children) line 3: E121: Undefined variable: mc ``` I searched the line at which it happened then, I found that `s:MenuController` is not defined in `menu_item.vim` but in menu_controller.vim . So I corrected the name to refer to MenuController. --- lib/nerdtree/menu_item.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nerdtree/menu_item.vim b/lib/nerdtree/menu_item.vim index 6fb9d9e..92c1bbb 100644 --- a/lib/nerdtree/menu_item.vim +++ b/lib/nerdtree/menu_item.vim @@ -90,7 +90,7 @@ endfunction "callback function! s:MenuItem.execute() if len(self.children) - let mc = s:MenuController.New(self.children) + let mc = g:NERDTreeMenuController.New(self.children) call mc.showMenu() else if self.callback != -1