]> git.eshelyaron.com Git - emacs.git/commitdiff
(modify_overlay): Force redisplay if we modify an
authorKim F. Storm <storm@cua.dk>
Fri, 24 Feb 2006 23:31:26 +0000 (23:31 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 24 Feb 2006 23:31:26 +0000 (23:31 +0000)
overlay at the end of the buffer.

src/buffer.c

index 9388025808c85fe1fe51f20185e117b72371c02e..c817ebc167ead51d2c9bf1a847fa1c473c3b9382 100644 (file)
@@ -3649,6 +3649,10 @@ modify_overlay (buf, start, end)
   /* 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);
 }