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:
parent
c1313b5f27
commit
84829495b5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue