(state: AutoCompleteState)
| 3556 | } |
| 3557 | |
| 3558 | const processAutoCompleteCursorDown = (state: AutoCompleteState) => { |
| 3559 | if (state.filtered.length === 0) { |
| 3560 | return Effect.succeed(Action.Beep()) |
| 3561 | } |
| 3562 | const cursor = autoCompleteCursor(state) |
| 3563 | const nextCursor = (cursor + 1) % state.filtered.length |
| 3564 | return Effect.succeed(Action.NextFrame({ state: { ...state, index: state.filtered[nextCursor] } })) |
| 3565 | } |
| 3566 | |
| 3567 | const processAutoCompleteNext = (state: AutoCompleteState) => processAutoCompleteCursorDown(state) |
| 3568 |
no test coverage detected