Buf_EndsWith
if (Buf_EndsWith(&buf, '\n'))
if (buf.len > 0 && !Buf_EndsWith(&buf, '\n'))
if (s[0] == '\n' || Buf_EndsWith(&buf->buf, '\n'))