(state: TextState)
| 3880 | } |
| 3881 | |
| 3882 | const processTextCursorRight = (state: TextState) => { |
| 3883 | if (state.cursor >= state.value.length) { |
| 3884 | return Effect.succeed(Action.Beep()) |
| 3885 | } |
| 3886 | const cursor = Math.min(state.cursor + 1, state.value.length) |
| 3887 | return Effect.succeed( |
| 3888 | Action.NextFrame({ |
| 3889 | state: { ...state, cursor, error: Option.none() } |
| 3890 | }) |
| 3891 | ) |
| 3892 | } |
| 3893 | |
| 3894 | const processTextCursorStart = (state: TextState) => |
| 3895 | Effect.succeed( |
no test coverage detected