(ch: string | undefined)
| 29 | |
| 30 | // Simple helper for word‑wise ops. |
| 31 | function isWordChar(ch: string | undefined): boolean { |
| 32 | if (ch === undefined) { |
| 33 | return false; |
| 34 | } |
| 35 | return !/[\s,.;!?]/.test(ch); |
| 36 | } |
| 37 | |
| 38 | // Helper functions for line-based word navigation |
| 39 | export const isWordCharStrict = (char: string): boolean => |