This is suggestion of harry mckame in RFE #874366 Add
I would like to make a distinction between the goto object
and the scroll-to object. The difference is that if the
is inside a diff, then the diff itself should be scrolled
into view, according to the principles to be decided on.
The principles which look reasonable to me are:
1. If the scroll-to object is entirely visible, no
2. If the scroll-to object is partly/entirely outside of
view, it is adjusted to be in the middle of the view
3. A slight skew of the scroll-to object towards the top
might be reasonable, but should IMHO not be more than 2-3
lines, and should not be applied at all if the scroll-to
object spans more than X lines (X=10 for example). The best
might be to add those two parameters (skew and X) as
4. A goto a line should of course always position the
to the line, even if the scroll-to object is a diff.
Log in to post a comment.