Commit f06405cb authored by Eli Zaretskii's avatar Eli Zaretskii

Avoid assertion violations in buf_bytepos_to_charpos

* src/marker.c (buf_bytepos_to_charpos): Disable the assertion
regarding bytepos always at the head byte of a multibyte
parent 6a1dcf59
Pipeline #915 failed with stage
in 50 minutes and 4 seconds
......@@ -332,9 +332,11 @@ buf_bytepos_to_charpos (struct buffer *b, ptrdiff_t bytepos)
if (best_above == best_above_byte)
return bytepos;
#if 0
/* Check bytepos is not in the middle of a character. */
eassert (bytepos >= BUF_Z_BYTE (b)
|| CHAR_HEAD_P (BUF_FETCH_BYTE (b, bytepos)));
best_below = BEG;
best_below_byte = BEG_BYTE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment