From 230a75fcd27b982ce02c8975bd7381a4608ed839 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Sat, 9 Apr 1994 04:15:16 +0000 Subject: [PATCH] (Fvertical_motion): Use window arg, not selected_window. --- src/indent.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/indent.c b/src/indent.c index 511cf5c294b..0d380f8d5b4 100644 --- a/src/indent.c +++ b/src/indent.c @@ -860,8 +860,7 @@ Returns number of lines moved; may be closer to zero than LINES\n\ Lisp_Object lines, window; { struct position pos; - register struct window *w = XWINDOW (selected_window); - int width = window_internal_width (w) - 1; + register struct window *w; CHECK_NUMBER (lines, 0); if (! NILP (window)) @@ -869,7 +868,8 @@ Returns number of lines moved; may be closer to zero than LINES\n\ else XSET (window, Lisp_Window, selected_window); - pos = *vmotion (point, XINT (lines), width, + w = XWINDOW (window); + pos = *vmotion (point, XINT (lines), window_internal_width (w) - 1, /* Not XFASTINT since perhaps could be negative */ XINT (w->hscroll), window); -- 2.39.5