diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/indent.c b/src/indent.c index 26507b5eb5b..be8676600a5 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -1974,6 +1974,11 @@ line_number_display_width (struct window *w, int *width, int *pixel_width) | |||
| 1974 | saved_restriction = true; | 1974 | saved_restriction = true; |
| 1975 | } | 1975 | } |
| 1976 | start_display (&it, w, wstart); | 1976 | start_display (&it, w, wstart); |
| 1977 | /* The call to move_it_by_lines below will not generate a line | ||
| 1978 | number if the first line shown in the window is hscrolled | ||
| 1979 | such that all of its display elements are out of view. So we | ||
| 1980 | pretend the hscroll doesn't exist. */ | ||
| 1981 | it.first_visible_x = 0; | ||
| 1977 | move_it_by_lines (&it, 1); | 1982 | move_it_by_lines (&it, 1); |
| 1978 | *width = it.lnum_width; | 1983 | *width = it.lnum_width; |
| 1979 | *pixel_width = it.lnum_pixel_width; | 1984 | *pixel_width = it.lnum_pixel_width; |