MCPcopy Create free account
hub / github.com/anomalyco/opencode / limit

Function limit

packages/opencode/src/cli/cmd/run/footer.menu.tsx:60–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 const [selected, setSelected] = createSignal(0)
59 const [offset, setOffset] = createSignal(0)
60 const limit = () => input.limit ?? FOOTER_MENU_ROWS
61 const rows = createMemo(() => Math.max(1, Math.min(limit(), input.count())))
62
63 const reveal = (index: number) => {

Callers 4

createFooterMenuStateFunction · 0.85
revealFunction · 0.85
moveFunction · 0.85
RunFooterMenuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected