mirror of
https://github.com/realAscot/helix.git
synced 2025-09-14 04:03:03 +02:00
On Windows for example the behavior of this function typically diverges from the usual behavior on Unix. Instead of checking that the inserted string starts with `'\n'` (untrue for for CRLF line endings) we need to check that the first grapheme cluster in the string is a line ending. (All line endings are single grapheme clusters.)