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

Method FindOpt

internal/display/statusline.go:99–104  ·  view source on GitHub ↗

FindOpt finds a given option in the current buffer's settings

(opt string)

Source from the content-addressed store, hash-verified

97
98// FindOpt finds a given option in the current buffer's settings
99func (s *StatusLine) FindOpt(opt string) any {
100 if val, ok := s.win.Buf.Settings[opt]; ok {
101 return val
102 }
103 return "null"
104}
105
106var formatParser = regexp.MustCompile(`\$\(.+?\)`)
107

Callers 1

DisplayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected