changeset 6763:51de9400bf88

(Fvertical_motion): Use window arg, not selected_window.
author Karl Heuer <kwzh@gnu.org>
date Sat, 09 Apr 1994 04:15:16 +0000
parents f77de1e2b48b
children 52b64d326287
files src/indent.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);