Commit ad6153e
fix(ui): paint snow scene lines by rune column, not byte offset
snowPaintLine used the range index as x offset; in Go that index is the
UTF-8 byte position, so multi-byte glyphs (█, ≋, ─) were spaced incorrectly.
Track a rune/column counter for correct cell placement.
Co-authored-by: Ben Schellenberger <bschellenberger2600@users.noreply.github.com>1 parent aa87bd4 commit ad6153e
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
294 | 295 | | |
295 | | - | |
| 296 | + | |
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
| |||
0 commit comments