mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 03:43:50 -05:00
Allow use of function references as callbacks (#1067)
This commit is contained in:
committed by
Phil Runninger
parent
82b1649f2e
commit
a7886fb6c4
@@ -66,7 +66,7 @@ endfunction
|
||||
"FUNCTION: KeyMap.invoke() {{{1
|
||||
"Call the KeyMaps callback function
|
||||
function! s:KeyMap.invoke(...)
|
||||
let Callback = function(self.callback)
|
||||
let Callback = type(self.callback) == v:t_func ? self.callback : function(self.callback)
|
||||
if a:0
|
||||
call Callback(a:1)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user