MCPcopy Create free account
hub / github.com/cli/cli / pageSize

Method pageSize

pkg/cmd/extension/browse/model.go:582–587  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

580}
581
582func (m *browseModel) pageSize() int {
583 if m.mainHeight() <= 1 {
584 return 1
585 }
586 return max(m.mainHeight()/2, 1)
587}
588
589func (m *browseModel) moveByPage(direction int) tea.Cmd {
590 if len(m.filtered) == 0 {

Callers 2

listViewMethod · 0.95
moveByPageMethod · 0.95

Calls 1

mainHeightMethod · 0.95

Tested by

no test coverage detected