Commits

ZyX_I committed 4141659

Added `register' key to newfeature

Comments (0)

Files changed (1)

plugin/frawor.vim

     let a:plugdict.features.newfeature[feature.id]=feature
     let s:g.features[feature.id]=feature
     if has_key(feature, 'ignoredeps')
-        call map(values(s:g.pls), 's:F.addfeature(v:val, feature)')
+        call map(values(s:g.pls), 's:F.addfeature(v:val, feature)'.
+                    \             ((has_key(feature, 'register'))?
+                    \               ('+feature.register(v:val)'):
+                    \               ('')))
     elseif has_key(s:g.dependents, a:plugdict.id)
         call map(keys(s:g.dependents[a:plugdict.id]),
-                    \'s:F.addfeature(s:g.pls[v:val], feature)')
+                    \'s:F.addfeature(s:g.pls[v:val], feature)'.
+                    \((has_key(feature, 'register'))?
+                    \   ('+feature.register(s:g.pls[v:val])'):
+                    \   ('')))
     endif
 endfunction
 "▶1 features.newfeature.unload