# HG changeset patch # User Jim Blandy # Date 781654498 0 # Node ID f5590c0b1756a52d0f4edcde434704aab1e2f019 # Parent 99429d6c8b4e30ba18669000ad6cf055290486ed * insdel.c (prepare_to_modify_buffer): Invalidate width run and newline caches, if they exist. diff -r 99429d6c8b4e -r f5590c0b1756 src/insdel.c --- 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; }