summaryrefslogtreecommitdiff
path: root/src/insdel.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1994-10-08 22:14:58 +0000
committerJim Blandy <jimb@redhat.com>1994-10-08 22:14:58 +0000
commit56e1065ec396c40e81518e603444edecae4320f2 (patch)
tree4d3ffb776d8b69f9cc281cce88063a1c4afd1686 /src/insdel.c
parent63dec5bd9d19a7ddd89c8c7db17284cc7f4afce0 (diff)
downloademacs-56e1065ec396c40e81518e603444edecae4320f2.tar.gz
* insdel.c (prepare_to_modify_buffer): Invalidate width run and
newline caches, if they exist.
Diffstat (limited to 'src/insdel.c')
-rw-r--r--src/insdel.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/insdel.c b/src/insdel.c
index 833d0065a1b..0a76dfa537f 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -629,6 +629,15 @@ prepare_to_modify_buffer (start, end)
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;
}