Fix point movement under 'scroll-conservatively'

* src/xdisp.c (redisplay_window): Correct a typo in computing the
effective number of text lines in a window.  (Bug#22637)
This commit is contained in:
Eli Zaretskii 2016-02-14 21:20:48 +02:00
parent c1313b5f27
commit 84829495b5

View file

@ -16920,7 +16920,7 @@ redisplay_window (Lisp_Object window, bool just_this_one_p)
if (scroll_conservatively > SCROLL_LIMIT)
{
int window_total_lines
= WINDOW_TOTAL_LINES (w) * FRAME_LINE_HEIGHT (f) * frame_line_height;
= WINDOW_TOTAL_LINES (w) * FRAME_LINE_HEIGHT (f) / frame_line_height;
int margin =
scroll_margin > 0
? min (scroll_margin, window_total_lines / 4)