From 98b2fa5104f4203949e16067afdaf6203b17e180 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Wed, 4 Jan 2012 09:27:06 +0000 Subject: [PATCH] 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. --- plugin/NERD_tree.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 9b8d70a..d215880 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -521,10 +521,11 @@ endfunction "FUNCTION: KeyMap.invoke() {{{3 "Call the KeyMaps callback function function! s:KeyMap.invoke(...) + let Callback = function(self.callback) if a:0 - call function(self.callback)(a:1) + call Callback(a:1) else - call function(self.callback)() + call Callback() endif endfunction