reset is the implementation of Reset. Caller must hold sd.mu.
()
| 174 | // reset is the implementation of Reset. |
| 175 | // Caller must hold sd.mu. |
| 176 | func (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. |
no test coverage detected