refactor(plugin): Enable human-friendly plugin name

This commit is contained in:
Thomas LE ROUX
2016-12-12 16:37:48 +01:00
parent 63f18f033c
commit 651cb89948
7 changed files with 46 additions and 37 deletions

View File

@@ -385,7 +385,7 @@ func main() {
for _, v := range t.views {
v.Buf.FindFileType()
v.Buf.UpdateRules()
for _, pl := range loadedPlugins {
for pl := range loadedPlugins {
_, err := Call(pl+".onViewOpen", v)
if err != nil && !strings.HasPrefix(err.Error(), "function does not exist") {
TermMessage(err)