aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 21ebafd4550..bee5e9aae98 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1342,7 +1342,10 @@ value is reasonable when this function is called.")
1342 Fset_buffer (w->buffer); 1342 Fset_buffer (w->buffer);
1343 opoint = point; 1343 opoint = point;
1344 SET_PT (marker_position (w->start)); 1344 SET_PT (marker_position (w->start));
1345 Frecenter (make_number (top - FRAME_MENU_BAR_LINES (XFRAME (WINDOW_FRAME (w))))); 1345 /* Like Frecenter but avoid setting w->force_start. */
1346 Fvertical_motion (make_number (- (top - FRAME_MENU_BAR_LINES (XFRAME (WINDOW_FRAME (w))))));
1347 Fset_marker (w->start, make_number (PT), w->buffer);
1348 w->start_at_line_beg = Fbolp ();
1346 1349
1347 SET_PT (opoint); 1350 SET_PT (opoint);
1348 set_buffer_internal (obuf); 1351 set_buffer_internal (obuf);