mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-27 02:33:35 +08:00
make a syntax fix for certain versions of vim
It seems that some versions of vim done like the syntax of: function("foo")() so refactor it slightly.
This commit is contained in:
parent
a63c8a2ec8
commit
98b2fa5104
|
@ -521,10 +521,11 @@ endfunction
|
||||||
"FUNCTION: KeyMap.invoke() {{{3
|
"FUNCTION: KeyMap.invoke() {{{3
|
||||||
"Call the KeyMaps callback function
|
"Call the KeyMaps callback function
|
||||||
function! s:KeyMap.invoke(...)
|
function! s:KeyMap.invoke(...)
|
||||||
|
let Callback = function(self.callback)
|
||||||
if a:0
|
if a:0
|
||||||
call function(self.callback)(a:1)
|
call Callback(a:1)
|
||||||
else
|
else
|
||||||
call function(self.callback)()
|
call Callback()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user