From: Eli Zaretskii Date: Thu, 26 Jan 2023 08:23:58 +0000 (+0200) Subject: ; * src/insdel.c (insert_from_buffer): Fix assertions. X-Git-Tag: emacs-29.0.90~590 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ff9498624fcd15e2ab6264d259d089aa5f989ae6;p=emacs.git ; * src/insdel.c (insert_from_buffer): Fix assertions. --- diff --git a/src/insdel.c b/src/insdel.c index 33dea569b24..0e1e98664b3 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -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