mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 06:12:35 +09:00
refactor(plugin): Enable human-friendly plugin name
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user