changeset 9409:f5590c0b1756

* insdel.c (prepare_to_modify_buffer): Invalidate width run and newline caches, if they exist.
author Jim Blandy <jimb@redhat.com>
date Sat, 08 Oct 1994 22:14:58 +0000
parents 99429d6c8b4e
children 8598c3d6f2f0
files src/insdel.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Sat Oct 08 22:14:35 1994 +0000
+++ b/src/insdel.c	Sat Oct 08 22:14:58 1994 +0000
@@ -629,6 +629,15 @@
 
   signal_before_change (start, end);
 
+  if (current_buffer->newline_cache)
+    invalidate_region_cache (current_buffer,
+                             current_buffer->newline_cache,
+                             start - BEG, Z - end);
+  if (current_buffer->width_run_cache)
+    invalidate_region_cache (current_buffer,
+                             current_buffer->width_run_cache,
+                             start - BEG, Z - end);
+
   Vdeactivate_mark = Qt;
 }