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:
Martin Grenfell 2012-01-04 09:27:06 +00:00
parent a63c8a2ec8
commit 98b2fa5104

View File

@ -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