diff options
| author | Karl Heuer | 1994-04-09 04:15:16 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-09 04:15:16 +0000 |
| commit | 230a75fcd27b982ce02c8975bd7381a4608ed839 (patch) | |
| tree | ec3ae6e351314523ea864d70fa61da0afd5f3c03 /src | |
| parent | 36f419156878396b07ce4cb44b1adc9c6e2cb5d1 (diff) | |
| download | emacs-230a75fcd27b982ce02c8975bd7381a4608ed839.tar.gz emacs-230a75fcd27b982ce02c8975bd7381a4608ed839.zip | |
(Fvertical_motion): Use window arg, not selected_window.
Diffstat (limited to 'src')
| -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\ | |||
| 860 | Lisp_Object lines, window; | 860 | Lisp_Object lines, window; |
| 861 | { | 861 | { |
| 862 | struct position pos; | 862 | struct position pos; |
| 863 | register struct window *w = XWINDOW (selected_window); | 863 | register struct window *w; |
| 864 | int width = window_internal_width (w) - 1; | ||
| 865 | 864 | ||
| 866 | CHECK_NUMBER (lines, 0); | 865 | CHECK_NUMBER (lines, 0); |
| 867 | if (! NILP (window)) | 866 | if (! NILP (window)) |
| @@ -869,7 +868,8 @@ Returns number of lines moved; may be closer to zero than LINES\n\ | |||
| 869 | else | 868 | else |
| 870 | XSET (window, Lisp_Window, selected_window); | 869 | XSET (window, Lisp_Window, selected_window); |
| 871 | 870 | ||
| 872 | pos = *vmotion (point, XINT (lines), width, | 871 | w = XWINDOW (window); |
| 872 | pos = *vmotion (point, XINT (lines), window_internal_width (w) - 1, | ||
| 873 | /* Not XFASTINT since perhaps could be negative */ | 873 | /* Not XFASTINT since perhaps could be negative */ |
| 874 | XINT (w->hscroll), window); | 874 | XINT (w->hscroll), window); |
| 875 | 875 | ||