]> code.delx.au - gnu-emacs/commitdiff
(redisplay_region): For special treatment, BUF most be
authorRichard M. Stallman <rms@gnu.org>
Tue, 28 Jun 1994 09:27:39 +0000 (09:27 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 28 Jun 1994 09:27:39 +0000 (09:27 +0000)
both current and displayed in selected window.

src/xdisp.c

index 937da4f02a1ef6959f79360ca5c38939b2d53671..e241b59e55b79f21a0da9082f151f990b5f7f332 100644 (file)
@@ -1824,6 +1824,9 @@ redisplay_region (buf, start, end)
      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;