(try_window): Skip scroll-margin check if ZV is visible.
This commit is contained in:
parent
21a9a7be96
commit
58e5658e85
1 changed files with 2 additions and 1 deletions
|
@ -12848,7 +12848,8 @@ try_window (window, pos, check_margins)
|
|||
this_scroll_margin *= FRAME_LINE_HEIGHT (it.f);
|
||||
|
||||
if ((w->cursor.y < this_scroll_margin
|
||||
&& CHARPOS (pos) > BEGV)
|
||||
&& CHARPOS (pos) > BEGV
|
||||
&& IT_CHARPOS (it) < ZV)
|
||||
/* rms: considering make_cursor_line_fully_visible_p here
|
||||
seems to give wrong results. We don't want to recenter
|
||||
when the last line is partly visible, we want to allow
|
||||
|
|
Loading…
Add table
Reference in a new issue