(idx: number)
| 83 | |
| 84 | const graphemeAt = (idx: number): string => graphemes[idx]?.segment ?? '' |
| 85 | const offsetAt = (idx: number): number => |
| 86 | idx < graphemes.length ? graphemes[idx]!.index : text.length |
| 87 | const isWs = (idx: number): boolean => isVimWhitespace(graphemeAt(idx)) |
| 88 | const isWord = (idx: number): boolean => isWordChar(graphemeAt(idx)) |
| 89 | const isPunct = (idx: number): boolean => isVimPunctuation(graphemeAt(idx)) |