From 99b9e975034c4e75341188be392d4b3c91b626ef Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 28 Jun 1994 09:27:39 +0000 Subject: [PATCH] (redisplay_region): For special treatment, BUF most be both current and displayed in selected window. --- src/xdisp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 937da4f02a1..e241b59e55b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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; -- 2.39.5