MCPcopy
hub / github.com/basecamp/once / focusedRow

Method focusedRow

internal/ui/settings_form_environment.go:130–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128}
129
130func (m SettingsFormEnvironment) focusedRow() int {
131 focused := m.form.Focused()
132 if focused < m.form.ItemCount() {
133 return focused / 2
134 }
135 return -1
136}
137
138func (m SettingsFormEnvironment) maxVisibleRows() int {
139 if m.height <= 0 {

Callers 1

adjustScrollMethod · 0.95

Calls 2

FocusedMethod · 0.80
ItemCountMethod · 0.80

Tested by

no test coverage detected