MCPcopy
hub / github.com/mum4k/termdash / reset

Method reset

widgets/segmentdisplay/segmentdisplay.go:176–180  ·  view source on GitHub ↗

reset is the implementation of Reset. Caller must hold sd.mu.

()

Source from the content-addressed store, hash-verified

174// reset is the implementation of Reset.
175// Caller must hold sd.mu.
176func (sd *SegmentDisplay) reset() {
177 sd.buff.Reset()
178 sd.givenWOpts = nil
179 sd.wOptsTracker = attrrange.NewTracker()
180}
181
182// preprocess determines the size of individual segments maximizing their
183// height or the amount of displayed characters based on the specified options.

Callers 2

WriteMethod · 0.95
ResetMethod · 0.95

Calls 2

NewTrackerFunction · 0.92
ResetMethod · 0.45

Tested by

no test coverage detected