MCPcopy
hub / github.com/cli/cli / ScrollUp

Method ScrollUp

pkg/cmd/extension/browse/browse.go:268–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

266}
267
268func (el *extList) ScrollUp() {
269 i := el.ui.List.GetCurrentItem() - 1
270 if i < 0 {
271 i = 0
272 }
273 el.ui.List.SetCurrentItem(i)
274}
275
276func (el *extList) FindSelected() (extEntry, int) {
277 if el.ui.List.GetItemCount() == 0 {

Callers 2

ExtBrowseFunction · 0.80
Test_extListFunction · 0.80

Calls

no outgoing calls

Tested by 1

Test_extListFunction · 0.64