From ff9498624fcd15e2ab6264d259d089aa5f989ae6 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 26 Jan 2023 10:23:58 +0200 Subject: [PATCH] ; * src/insdel.c (insert_from_buffer): Fix assertions. --- src/insdel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2