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
commit75b0efe75bb290ea97d28e0b5be771640341ec42 (patch)
tree88f327c3ca7d8b8cba9a06a4488406d09dc8414d /src/insdel.c
parent86dc6fbdb9a36d1d4e1a6cf7fc1e7991293f43a3 (diff)
downloademacs-75b0efe75bb290ea97d28e0b5be771640341ec42.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;
}