emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 ff9498624f: ; * src/insdel.c (insert_from_buffer): Fix assertio


From: Eli Zaretskii
Subject: emacs-29 ff9498624f: ; * src/insdel.c (insert_from_buffer): Fix assertions.
Date: Thu, 26 Jan 2023 03:24:00 -0500 (EST)

branch: emacs-29
commit ff9498624fcd15e2ab6264d259d089aa5f989ae6
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; * 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 33dea569b2..0e1e98664b 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]