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

@@ -117,7 +117,7 @@ func (eh *EventHandler) Execute(t *TextEvent) {
}
eh.UndoStack.Push(t)
for _, pl := range loadedPlugins {
for pl := range loadedPlugins {
ret, err := Call(pl+".onBeforeTextEvent", t)
if err != nil && !strings.HasPrefix(err.Error(), "function does not exist") {
TermMessage(err)