(
state: { type: 'find'; find: FindType; count: number },
input: string,
ctx: TransitionContext,
)
| 367 | } |
| 368 | |
| 369 | function fromFind( |
| 370 | state: { type: 'find'; find: FindType; count: number }, |
| 371 | input: string, |
| 372 | ctx: TransitionContext, |
| 373 | ): TransitionResult { |
| 374 | return { |
| 375 | execute: () => { |
| 376 | const result = ctx.cursor.findCharacter(input, state.find, state.count) |
| 377 | if (result !== null) { |
| 378 | ctx.setOffset(result) |
| 379 | ctx.setLastFind(state.find, input) |
| 380 | } |
| 381 | }, |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | function fromG( |
| 386 | state: { type: 'g'; count: number }, |
no test coverage detected