aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-05-16 02:56:20 +0000
committerKarl Heuer1995-05-16 02:56:20 +0000
commit6e55cbc223e1aeffb2e713208506372f15d2854f (patch)
tree270f28065ed4fb5d635bc2d85890de6cf109a2a2 /src
parentbaea3bddf62f9ab1d6e3d0ac545a408994333a93 (diff)
downloademacs-6e55cbc223e1aeffb2e713208506372f15d2854f.tar.gz
emacs-6e55cbc223e1aeffb2e713208506372f15d2854f.zip
(Frecenter): Fix args to vmotion (overlooked in May 13 change).
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