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

Method listWidth

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

Source from the content-addressed store, hash-verified

563}
564
565func (m *browseModel) listWidth() int {
566 if m.singleColumn() || m.width <= 0 {
567 return m.width
568 }
569 return max(m.width/2, 1)
570}
571
572func (m *browseModel) readmeWidth() int {
573 if m.page == readmePage {

Callers 3

mainContentMethod · 0.95
listViewMethod · 0.95
readmeWidthMethod · 0.95

Calls 1

singleColumnMethod · 0.95

Tested by

no test coverage detected