self.cursor is a byte index into the string. When scanning the buffer, we need to compare character positions, not byte positions or widths. Convert self.cursor to a character count before comparing with the buffer scan. Count each non-empty cell as 1 character (the buffer already represents visual cells, so width doesn't matter here). |
||
|---|---|---|
| .. | ||
| .claude | ||
| paper | ||
| src | ||
| tests | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| POC.md | ||
| scratch.md | ||