diff options
author | Jim Blandy <jimb@redhat.com> | 1994-10-08 22:14:58 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1994-10-08 22:14:58 +0000 |
commit | 75b0efe75bb290ea97d28e0b5be771640341ec42 (patch) | |
tree | 88f327c3ca7d8b8cba9a06a4488406d09dc8414d | |
parent | 86dc6fbdb9a36d1d4e1a6cf7fc1e7991293f43a3 (diff) | |
download | emacs-75b0efe75bb290ea97d28e0b5be771640341ec42.tar.gz |
* insdel.c (prepare_to_modify_buffer): Invalidate width run and
newline caches, if they exist.
-rw-r--r-- | src/insdel.c | 9 |
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; } |