diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c index 1194431841a..748422df73a 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -2691,10 +2691,11 @@ current buffer is cleared. */) | |||
| 2691 | 2691 | ||
| 2692 | UNGCPRO; | 2692 | UNGCPRO; |
| 2693 | 2693 | ||
| 2694 | /* Changing the multibyteness of a buffer means that all windows | ||
| 2695 | showing that buffer must be updated thoroughly. */ | ||
| 2696 | current_buffer->prevent_redisplay_optimizations_p = 1; | 2694 | current_buffer->prevent_redisplay_optimizations_p = 1; |
| 2697 | ++windows_or_buffers_changed; | 2695 | |
| 2696 | /* If buffer is shown in a window, let redisplay consider other windows. */ | ||
| 2697 | if (buffer_window_count (current_buffer)) | ||
| 2698 | ++windows_or_buffers_changed; | ||
| 2698 | 2699 | ||
| 2699 | /* Copy this buffer's new multibyte status | 2700 | /* Copy this buffer's new multibyte status |
| 2700 | into all of its indirect buffers. */ | 2701 | into all of its indirect buffers. */ |