Skip to content
Browse files

Replaced has_key(s:c, 'started_up') with !has('vim_starting')

  • Loading branch information...
1 parent 75b80db commit 891492b445fe4a6455a817e891fbbddf5231178a @ZyX-I ZyX-I committed Sep 7, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 autoload/scriptmanager.vim
View
6 autoload/scriptmanager.vim
@@ -185,15 +185,15 @@ fun! scriptmanager#Activate(...) abort
\ + filter(map(copy(s:new_runtime_paths),'v:val."/after"'), 'isdirectory(v:val)') ,",")
unlet rtp
- if has_key(s:c, 'started_up')
+ if !has('vim_starting')
for rtp in s:new_runtime_paths
call scriptmanager#GlobThenSource(rtp.'/plugin/**/*.vim')
call scriptmanager#GlobThenSource(rtp.'/after/plugin/**/*.vim')
endfor
endif
endif
- if has_key(s:c, 'started_up')
+ if !has('vim_starting')
" now source after/plugin/**/*.vim files explicitely. Vim doesn't do it (hack!)
for k in keys(s:c['activated_plugins'])
if !has_key(active, k)
@@ -219,8 +219,6 @@ augroup end
" Vim doesn't source the after/plugin/*.vim files in other runtime
" paths. So do this *after* plugin/* files have been sourced
fun! scriptmanager#Hack()
- let s:c['started_up'] = 1
-
" now source after/plugin/**/*.vim files explicitly. Vim doesn't do it (hack!)
for p in keys(s:c['activated_plugins'])
call scriptmanager#GlobThenSource(scriptmanager#PluginDirByName(p).'/after/plugin/**/*.vim')

0 comments on commit 891492b

Please sign in to comment.
Something went wrong with that request. Please try again.