diff options
| author | Eli Zaretskii | 2023-01-26 10:23:58 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2023-01-26 10:23:58 +0200 |
| commit | ff9498624fcd15e2ab6264d259d089aa5f989ae6 (patch) | |
| tree | c4ab70423fffaf3b18d2c7be4132ec9844d3fc61 /src | |
| parent | 41f497c8bee6e36a621a6d9088636069159387a9 (diff) | |
| download | emacs-ff9498624fcd15e2ab6264d259d089aa5f989ae6.tar.gz emacs-ff9498624fcd15e2ab6264d259d089aa5f989ae6.zip | |
; * src/insdel.c (insert_from_buffer): Fix assertions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/insdel.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
| 1184 | update_compositions (opoint, PT, CHECK_BORDER); | 1184 | update_compositions (opoint, PT, CHECK_BORDER); |
| 1185 | 1185 | ||
| 1186 | #ifdef HAVE_TREE_SITTER | 1186 | #ifdef HAVE_TREE_SITTER |
| 1187 | eassert (PT_BYTE >= 0); | 1187 | eassert (PT_BYTE >= BEG_BYTE); |
| 1188 | eassert (obyte >= BEG_BYTE); | ||
| 1188 | eassert (PT_BYTE >= obyte); | 1189 | eassert (PT_BYTE >= obyte); |
| 1189 | treesit_record_change (obyte, obyte, PT_BYTE); | 1190 | treesit_record_change (obyte, obyte, PT_BYTE); |
| 1190 | #endif | 1191 | #endif |