diff options
author | Karl Heuer <kwzh@gnu.org> | 1994-04-09 04:15:16 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1994-04-09 04:15:16 +0000 |
commit | b0e40f400714b7fd84131669ed0c1f9045d7247d (patch) | |
tree | fca90a245ac774f8d2d9e89cbcf8460fc29bea8d /src/indent.c | |
parent | 89ee11f8fbe2c96ec8ab57b7e68c99a187e8b7e6 (diff) | |
download | emacs-b0e40f400714b7fd84131669ed0c1f9045d7247d.tar.gz |
(Fvertical_motion): Use window arg, not selected_window.
Diffstat (limited to 'src/indent.c')
-rw-r--r-- | src/indent.c | 6 |
1 files 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); |