mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
80da4d6b02
This commit tests and fixes some edge cases that threw off rune accounting when a newline character was the final rune in the input *and* the text was being truncated. I imagine they were never previously reported because it's rare to try to truncate such text. Thanks to Dominik Honnef for the report and reproducer. Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>