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

Method readmeWidth

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

Source from the content-addressed store, hash-verified

570}
571
572func (m *browseModel) readmeWidth() int {
573 if m.page == readmePage {
574 return max(m.width-2, 1)
575 }
576 if m.singleColumn() {
577 return max(m.width-2, 1)
578 }
579 return max(m.width-m.listWidth()-2, 1)
580}
581
582func (m *browseModel) pageSize() int {
583 if m.mainHeight() <= 1 {

Callers 4

UpdateMethod · 0.95
resizeReadmeMethod · 0.95
loadSelectedReadmeMethod · 0.95
renderLoadedReadmeMethod · 0.95

Calls 2

singleColumnMethod · 0.95
listWidthMethod · 0.95

Tested by

no test coverage detected