Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: plugin declaration can be overwitten.
**Problems** When `jetpack#add` is called with same name's plugin, it checks against `a:plugin` that may inclues GitHub user name such as `tani/jetpack`, but key for `s:declared_packages` is plugin name such as `jetpack`, which is inconsistent. Due to this issue, when the Lua API is used with `requires`, for example, it calls same plugin name to `use(req)` call at line around 853, which may override already declared plugin. **Solution** Use plugin name always for `s:declared_packages`. This patch also includes minor indent fix.
- Loading branch information