; * src/insdel.c (insert_from_buffer): Fix assertions.

This commit is contained in:
Eli Zaretskii 2023-01-26 10:23:58 +02:00
parent 41f497c8be
commit ff9498624f

View file

@ -1184,7 +1184,8 @@ insert_from_buffer (struct buffer *buf,
update_compositions (opoint, PT, CHECK_BORDER);
#ifdef HAVE_TREE_SITTER
eassert (PT_BYTE >= 0);
eassert (PT_BYTE >= BEG_BYTE);
eassert (obyte >= BEG_BYTE);
eassert (PT_BYTE >= obyte);
treesit_record_change (obyte, obyte, PT_BYTE);
#endif