Commit 163784df authored by Miles Bader's avatar Miles Bader

(Fmove_to_window_line): Skip past any partially visible first line.

parent df0677c3
......@@ -4482,12 +4482,7 @@ displayed_window_lines (w)
int lines = (rest + CANON_Y_UNIT (f) - 1) / CANON_Y_UNIT (f);
it.vpos += lines;
}
#if 0
else if (it.current_y < height && bottom_y > height)
/* Partially visible line at the bottom. */
++it.vpos;
#endif
return it.vpos;
}
......@@ -4529,6 +4524,10 @@ zero means top of window, negative means relative to bottom of window.")
XSETINT (arg, XINT (arg) + lines);
}
if (w->vscroll)
/* Skip past a partially visible first line. */
XSETINT (arg, XINT (arg) + 1);
return Fvertical_motion (arg, window);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment