projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41f497c
)
; * src/insdel.c (insert_from_buffer): Fix assertions.
author
Eli Zaretskii
<eliz@gnu.org>
Thu, 26 Jan 2023 08:23:58 +0000
(10:23 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Thu, 26 Jan 2023 08:23:58 +0000
(10:23 +0200)
src/insdel.c
patch
|
blob
|
history
diff --git
a/src/insdel.c
b/src/insdel.c
index 33dea569b241aa64caa4e6cd6c0e170e099fc1f8..0e1e98664b30da73bc14ac13b3489412419c4189 100644
(file)
--- 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