emacs-diffs
[Top][All Lists]
Advanced

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

scratch/igc 0ca33649614: Balance buffer intervals


From: Gerd Moellmann
Subject: scratch/igc 0ca33649614: Balance buffer intervals
Date: Sun, 7 Jul 2024 04:46:24 -0400 (EDT)

branch: scratch/igc
commit 0ca33649614d7ead20d18a62b1c7ce2d56d07da1
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>

    Balance buffer intervals
    
    * src/igc.c (buffer_step): Call balance_intervals.
---
 src/igc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/igc.c b/src/igc.c
index 924a6d321fc..559d02eee28 100644
--- a/src/igc.c
+++ b/src/igc.c
@@ -3421,7 +3421,9 @@ buffer_step (struct igc_buffer_it *it)
     {
       Lisp_Object buf = it->buf;
       buffer_it_next (it);
-      compact_buffer (XBUFFER (buf));
+      struct buffer *b = XBUFFER (buf);
+      compact_buffer (b);
+      b->text->intervals = balance_intervals (b->text->intervals);
       return true;
     }
   return false;



reply via email to

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