mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05:00
Ensure backward compatibility. v:t_func is not available before 8.0.
This commit is contained in:
@@ -501,7 +501,7 @@ function! s:Path.ignore(nerdtree)
|
||||
endfor
|
||||
|
||||
for Callback in g:NERDTree.PathFilters()
|
||||
let Callback = type(Callback) == v:t_func ? Callback : function(Callback)
|
||||
let Callback = type(Callback) == type(function("tr")) ? Callback : function(Callback)
|
||||
if Callback({'path': self, 'nerdtree': a:nerdtree})
|
||||
return 1
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user