(option string, oldValue any, newValue any)
| 164 | } |
| 165 | |
| 166 | func (b *Buffer) doCallbacks(option string, oldValue any, newValue any) { |
| 167 | if b.OptionCallback != nil { |
| 168 | b.OptionCallback(option, newValue) |
| 169 | } |
| 170 | |
| 171 | if err := config.RunPluginFn("onBufferOptionChanged", |
| 172 | luar.New(ulua.L, b), luar.New(ulua.L, option), |
| 173 | luar.New(ulua.L, oldValue), luar.New(ulua.L, newValue)); err != nil { |
| 174 | screen.TermMessage(err) |
| 175 | } |
| 176 | } |
no test coverage detected