MCPcopy
hub / github.com/cli/cli / PageUp

Method PageUp

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

Source from the content-addressed store, hash-verified

254}
255
256func (el *extList) PageUp() {
257 i := el.ui.List.GetCurrentItem() - pagingOffset
258 if i < 0 {
259 i = 0
260 }
261 el.ui.List.SetCurrentItem(i)
262}
263
264func (el *extList) ScrollDown() {
265 el.ui.List.SetCurrentItem(el.ui.List.GetCurrentItem() + 1)

Callers 2

ExtBrowseFunction · 0.80
Test_extListFunction · 0.80

Calls

no outgoing calls

Tested by 1

Test_extListFunction · 0.64