changeset 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 0ec2a1d7ad82
children b710715f099b
files src/buffer.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Fri Feb 24 23:31:06 2006 +0000
+++ b/src/buffer.c	Fri Feb 24 23:31:26 2006 +0000
@@ -3649,6 +3649,10 @@
   /* If multiple windows show this buffer, we must do other windows.  */
   else if (buffer_shared > 1)
     windows_or_buffers_changed = 1;
+  /* If we modify an overlay at the end of the buffer, we cannot
+     be sure that window end is still valid.  */
+  else if (end >= ZV && start <= ZV)
+    windows_or_buffers_changed = 1;
 
   ++BUF_OVERLAY_MODIFF (buf);
 }