MCPcopy
hub / github.com/charmbracelet/glow / setSize

Method setSize

ui/stash.go:207–216  ·  view source on GitHub ↗
(width, height int)

Source from the content-addressed store, hash-verified

205}
206
207func (m *stashModel) setSize(width, height int) {
208 m.common.width = width
209 m.common.height = height
210
211 m.filterInput.Width = width - stashViewHorizontalPadding*2 - ansi.PrintableRuneWidth(
212 m.filterInput.Prompt,
213 )
214
215 m.updatePagination()
216}
217
218func (m *stashModel) resetFiltering() {
219 m.filterState = unfiltered

Callers 1

UpdateMethod · 0.45

Calls 1

updatePaginationMethod · 0.95

Tested by

no test coverage detected