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..<SNR>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.
This commit is contained in:
parent
b0bb781fc7
commit
ad4ebaac93
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user