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

Function previewMargin

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

Source from the content-addressed store, hash-verified

24}
25
26function previewMargin(limit: number) {
27 return Math.max(0, Math.min(2, Math.floor((limit - 1) / 2)))
28}
29
30function revealOffset(value: number, input: { count: number; limit: number; selected: number }) {
31 const max = maxOffset(input.count, input.limit)

Callers 1

moveOffsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected