allow flags to be scoped to a plugin

Add new FlagSet class and init each Path with one.

Call Path.flagSet.addFlag(scope, flag) instead of Path.addFlag(flag)
This commit is contained in:
Martin Grenfell
2014-07-05 20:51:21 +01:00
parent a7428eba38
commit 32cf3ee62d
4 changed files with 61 additions and 28 deletions

View File

@@ -239,6 +239,7 @@ function! nerdtree#loadClassFiles()
runtime lib/nerdtree/opener.vim
runtime lib/nerdtree/creator.vim
runtime lib/nerdtree/refresh_notifier.vim
runtime lib/nerdtree/flag_set.vim
endfunction
" FUNCTION: nerdtree#postSourceActions() {{{2