aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/window.c b/src/window.c
index e40572bf13d..d60ee06077f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -549,15 +549,7 @@ select_window_1 (Lisp_Object window, bool inhibit_point_swap)
549 than one window. It also matters when 549 than one window. It also matters when
550 redisplay_window has altered point after scrolling, 550 redisplay_window has altered point after scrolling,
551 because it makes the change only in the window. */ 551 because it makes the change only in the window. */
552 { 552 set_point_from_marker (XWINDOW (window)->pointm);
553 register ptrdiff_t new_point = marker_position (XWINDOW (window)->pointm);
554 if (new_point < BEGV)
555 SET_PT (BEGV);
556 else if (new_point > ZV)
557 SET_PT (ZV);
558 else
559 SET_PT (new_point);
560 }
561} 553}
562 554
563DEFUN ("select-window", Fselect_window, Sselect_window, 1, 2, 0, 555DEFUN ("select-window", Fselect_window, Sselect_window, 1, 2, 0,