aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 879e14be960..2f026584bbf 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -932,6 +932,18 @@ delete_all_overlays (struct buffer *b)
932 interval_tree_clear (b->overlays); 932 interval_tree_clear (b->overlays);
933} 933}
934 934
935static void
936free_buffer_overlays (struct buffer *b)
937{
938 /* Actually this does not free any overlay, but the tree only. --ap */
939 eassert (! b->overlays || 0 == interval_tree_size (b->overlays));
940 if (b->overlays)
941 {
942 interval_tree_destroy (b->overlays);
943 b->overlays = NULL;
944 }
945}
946
935/* Adjust the position of overlays in the current buffer according to 947/* Adjust the position of overlays in the current buffer according to
936 MULTIBYTE. 948 MULTIBYTE.
937 949