From: Jim Blandy Date: Sat, 8 Oct 1994 22:14:58 +0000 (+0000) Subject: * insdel.c (prepare_to_modify_buffer): Invalidate width run and X-Git-Tag: emacs-19.34~6445 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=56e1065ec396c40e81518e603444edecae4320f2;p=emacs.git * insdel.c (prepare_to_modify_buffer): Invalidate width run and newline caches, if they exist. --- 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; }