diff options
| author | Jim Blandy | 1994-10-08 22:14:58 +0000 |
|---|---|---|
| committer | Jim Blandy | 1994-10-08 22:14:58 +0000 |
| commit | 56e1065ec396c40e81518e603444edecae4320f2 (patch) | |
| tree | 4d3ffb776d8b69f9cc281cce88063a1c4afd1686 /src | |
| parent | 63dec5bd9d19a7ddd89c8c7db17284cc7f4afce0 (diff) | |
| download | emacs-56e1065ec396c40e81518e603444edecae4320f2.tar.gz emacs-56e1065ec396c40e81518e603444edecae4320f2.zip | |
* insdel.c (prepare_to_modify_buffer): Invalidate width run and
newline caches, if they exist.
Diffstat (limited to 'src')
| -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) | |||
| 629 | 629 | ||
| 630 | signal_before_change (start, end); | 630 | signal_before_change (start, end); |
| 631 | 631 | ||
| 632 | if (current_buffer->newline_cache) | ||
| 633 | invalidate_region_cache (current_buffer, | ||
| 634 | current_buffer->newline_cache, | ||
| 635 | start - BEG, Z - end); | ||
| 636 | if (current_buffer->width_run_cache) | ||
| 637 | invalidate_region_cache (current_buffer, | ||
| 638 | current_buffer->width_run_cache, | ||
| 639 | start - BEG, Z - end); | ||
| 640 | |||
| 632 | Vdeactivate_mark = Qt; | 641 | Vdeactivate_mark = Qt; |
| 633 | } | 642 | } |
| 634 | 643 | ||