mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
plugins: Add capability to dis-/enable them per buffer (#2836)
This commit is contained in:
@@ -66,7 +66,7 @@ func SetStatusInfoFnLua(fn string) {
|
||||
return
|
||||
}
|
||||
statusInfo[fn] = func(b *buffer.Buffer) string {
|
||||
if pl == nil || !pl.IsEnabled() {
|
||||
if pl == nil || !pl.IsLoaded() {
|
||||
return ""
|
||||
}
|
||||
val, err := pl.Call(plFn, luar.New(ulua.L, b))
|
||||
|
||||
Reference in New Issue
Block a user