# HG changeset patch # User Karl Heuer # Date 765864916 0 # Node ID 51de9400bf88925678242ef98f3c6fd0d1db2e3f # Parent f77de1e2b48ba349c897550d801c375c660579e3 (Fvertical_motion): Use window arg, not selected_window. diff -r f77de1e2b48b -r 51de9400bf88 src/indent.c --- a/src/indent.c Sat Apr 09 02:46:19 1994 +0000 +++ b/src/indent.c Sat Apr 09 04:15:16 1994 +0000 @@ -860,8 +860,7 @@ 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 @@ 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);