MCPcopy
hub / github.com/micro-editor/micro / doCallbacks

Method doCallbacks

internal/buffer/settings.go:166–176  ·  view source on GitHub ↗
(option string, oldValue any, newValue any)

Source from the content-addressed store, hash-verified

164}
165
166func (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}

Callers 2

ReloadSettingsMethod · 0.95
DoSetOptionNativeMethod · 0.95

Calls 2

RunPluginFnFunction · 0.92
TermMessageFunction · 0.92

Tested by

no test coverage detected