comparison src/buffer.c @ 69144:5c9e3eb42568

(modify_overlay): Force redisplay if we modify an overlay at the end of the buffer.
author Kim F. Storm <storm@cua.dk>
date Fri, 24 Feb 2006 23:31:26 +0000
parents 7e64cebb0463
children 1f7111323584
comparison
equal deleted inserted replaced
69143:0ec2a1d7ad82 69144:5c9e3eb42568
3646 we must do other windows. */ 3646 we must do other windows. */
3647 if (buf != XBUFFER (XWINDOW (selected_window)->buffer)) 3647 if (buf != XBUFFER (XWINDOW (selected_window)->buffer))
3648 windows_or_buffers_changed = 1; 3648 windows_or_buffers_changed = 1;
3649 /* If multiple windows show this buffer, we must do other windows. */ 3649 /* If multiple windows show this buffer, we must do other windows. */
3650 else if (buffer_shared > 1) 3650 else if (buffer_shared > 1)
3651 windows_or_buffers_changed = 1;
3652 /* If we modify an overlay at the end of the buffer, we cannot
3653 be sure that window end is still valid. */
3654 else if (end >= ZV && start <= ZV)
3651 windows_or_buffers_changed = 1; 3655 windows_or_buffers_changed = 1;
3652 3656
3653 ++BUF_OVERLAY_MODIFF (buf); 3657 ++BUF_OVERLAY_MODIFF (buf);
3654 } 3658 }
3655 3659