diff options
| author | Kim F. Storm | 2006-02-24 23:31:26 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-02-24 23:31:26 +0000 |
| commit | 18700091b0e18fabf58eb461e5286c83995d7e04 (patch) | |
| tree | 6eb47f67e1df7362c3c564173378fa1d9dedd586 /src/buffer.c | |
| parent | a7a7e1d77c35c6e34479ae8b8f85b43119c542b0 (diff) | |
| download | emacs-18700091b0e18fabf58eb461e5286c83995d7e04.tar.gz emacs-18700091b0e18fabf58eb461e5286c83995d7e04.zip | |
(modify_overlay): Force redisplay if we modify an
overlay at the end of the buffer.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) | |||
| 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; | 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) | ||
| 3655 | windows_or_buffers_changed = 1; | ||
| 3652 | 3656 | ||
| 3653 | ++BUF_OVERLAY_MODIFF (buf); | 3657 | ++BUF_OVERLAY_MODIFF (buf); |
| 3654 | } | 3658 | } |