diff options
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 | ||