MCPcopy Index your code
hub / github.com/Effect-TS/effect / processCursorUp

Function processCursorUp

packages/cli/src/internal/prompt/file.ts:246–251  ·  view source on GitHub ↗
(state: State)

Source from the content-addressed store, hash-verified

244}
245
246function processCursorUp(state: State) {
247 const cursor = state.cursor - 1
248 return Effect.succeed(Action.NextFrame({
249 state: { ...state, cursor: cursor < 0 ? state.files.length - 1 : cursor }
250 }))
251}
252
253function processCursorDown(state: State) {
254 return Effect.succeed(Action.NextFrame({

Callers 1

handleProcessFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected