changeset 8075:b546fa7e9911

(redisplay_region): For special treatment, BUF most be both current and displayed in selected window.
author Richard M. Stallman <rms@gnu.org>
date Tue, 28 Jun 1994 09:27:39 +0000
parents cef2897f2e15
children 3a35434b19d2
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Jun 28 09:25:42 1994 +0000
+++ b/src/xdisp.c	Tue Jun 28 09:27:39 1994 +0000
@@ -1824,6 +1824,9 @@
      we must do other windows.  */
   if (buf != XBUFFER (XWINDOW (selected_window)->buffer))
     windows_or_buffers_changed = 1;
+  /* If it's not current, we can't use beg_unchanged, end_unchanged for it.  */
+  else if (buf != current_buffer)
+    windows_or_buffers_changed = 1;
   /* If multiple windows show this buffer, we must do other windows.  */
   else if (buffer_shared > 1)
     windows_or_buffers_changed = 1;