(state: TextState)
| 3616 | } |
| 3617 | |
| 3618 | const processTextCursorRight = (state: TextState) => { |
| 3619 | if (state.cursor >= state.value.length) { |
| 3620 | return Effect.succeed(Action.Beep()) |
| 3621 | } |
| 3622 | const cursor = Math.min(state.cursor + 1, state.value.length) |
| 3623 | return Effect.succeed( |
| 3624 | Action.NextFrame({ |
| 3625 | state: { ...state, cursor, error: Option.none() } |
| 3626 | }) |
| 3627 | ) |
| 3628 | } |
| 3629 | |
| 3630 | const processTextCursorStart = (state: TextState) => |
| 3631 | Effect.succeed( |
no test coverage detected