plugins: Add capability to dis-/enable them per buffer (#2836)

This commit is contained in:
Jöran Karl
2023-06-06 02:38:33 +02:00
committed by GitHub
parent 1b4f6ecb12
commit c46467b5b9
7 changed files with 50 additions and 16 deletions

View File

@@ -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))