aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c
index 5ed0711d20a..1ef9404f7f1 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2780,7 +2780,6 @@ redraws with point in the center of the current window.")
2780 register struct window *w = XWINDOW (selected_window); 2780 register struct window *w = XWINDOW (selected_window);
2781 register int ht = window_internal_height (w); 2781 register int ht = window_internal_height (w);
2782 struct position pos; 2782 struct position pos;
2783 Lisp_Object window;
2784 2783
2785 if (NILP (n)) 2784 if (NILP (n))
2786 { 2785 {
@@ -2802,9 +2801,7 @@ redraws with point in the center of the current window.")
2802 if (XINT (n) < 0) 2801 if (XINT (n) < 0)
2803 XSETINT (n, XINT (n) + ht); 2802 XSETINT (n, XINT (n) + ht);
2804 2803
2805 XSETWINDOW (window, w); 2804 pos = *vmotion (point, - XINT (n), w);
2806 pos = *vmotion (point, - XINT (n), window_internal_width (w) - 1,
2807 XINT (w->hscroll), window);
2808 2805
2809 Fset_marker (w->start, make_number (pos.bufpos), w->buffer); 2806 Fset_marker (w->start, make_number (pos.bufpos), w->buffer);
2810 w->start_at_line_beg = ((pos.bufpos == BEGV 2807 w->start_at_line_beg = ((pos.bufpos == BEGV