From: Kim F. Storm Date: Fri, 24 Feb 2006 23:31:26 +0000 (+0000) Subject: (modify_overlay): Force redisplay if we modify an X-Git-Tag: emacs-pretest-22.0.90~3909 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=18700091b0e18fabf58eb461e5286c83995d7e04;p=emacs.git (modify_overlay): Force redisplay if we modify an overlay at the end of the buffer. --- diff --git a/src/buffer.c b/src/buffer.c index 9388025808c..c817ebc167e 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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); }