diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index 223ef072386..5a54f46091c 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -4479,7 +4479,7 @@ displayed_window_lines (w) | |||
| 4479 | { | 4479 | { |
| 4480 | struct frame *f = XFRAME (w->frame); | 4480 | struct frame *f = XFRAME (w->frame); |
| 4481 | int rest = height - bottom_y; | 4481 | int rest = height - bottom_y; |
| 4482 | int lines = (rest + CANON_Y_UNIT (f) - 1) / CANON_Y_UNIT (f); | 4482 | int lines = rest / CANON_Y_UNIT (f); |
| 4483 | it.vpos += lines; | 4483 | it.vpos += lines; |
| 4484 | } | 4484 | } |
| 4485 | 4485 | ||