From 799417bd9433225627580715a7b286856ac861e8 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 12 Dec 2000 16:14:01 +0000 Subject: [PATCH] (Fset_window_point): If displaying cursors in windows other than the selected window, make sure redisplay updates other windows to show the new value of point in the window. --- src/window.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/window.c b/src/window.c index 23dbcbdfa99..d7a81dad0e3 100644 --- a/src/window.c +++ b/src/window.c @@ -898,6 +898,12 @@ DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0, Fgoto_char (pos); else set_marker_restricted (w->pointm, pos, w->buffer); + + /* If displaying hollow box cursors in non-selected windows, we have + to make sure that redisplay updates the window to show the new + value of point. */ + if (cursor_in_non_selected_windows && !EQ (window, selected_window)) + ++windows_or_buffers_changed; return pos; } -- 2.39.2