From 56e1065ec396c40e81518e603444edecae4320f2 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sat, 8 Oct 1994 22:14:58 +0000 Subject: * insdel.c (prepare_to_modify_buffer): Invalidate width run and newline caches, if they exist. --- src/insdel.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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; } -- cgit v1.2.1