aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index e6f93726f5a..e4d846c8093 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3665,6 +3665,10 @@ modify_overlay (buf, start, end)
3665 /* If multiple windows show this buffer, we must do other windows. */ 3665 /* If multiple windows show this buffer, we must do other windows. */
3666 else if (buffer_shared > 1) 3666 else if (buffer_shared > 1)
3667 windows_or_buffers_changed = 1; 3667 windows_or_buffers_changed = 1;
3668 /* If we modify an overlay at the end of the buffer, we cannot
3669 be sure that window end is still valid. */
3670 else if (end >= ZV && start <= ZV)
3671 windows_or_buffers_changed = 1;
3668 3672
3669 ++BUF_OVERLAY_MODIFF (buf); 3673 ++BUF_OVERLAY_MODIFF (buf);
3670} 3674}
@@ -4106,6 +4110,7 @@ DEFUN ("overlay-put", Foverlay_put, Soverlay_put, 3, 3, 0,
4106 == OVERLAY_POSITION (OVERLAY_END (overlay)))) 4110 == OVERLAY_POSITION (OVERLAY_END (overlay))))
4107 Fdelete_overlay (overlay); 4111 Fdelete_overlay (overlay);
4108 } 4112 }
4113
4109 return value; 4114 return value;
4110} 4115}
4111 4116