Automatically scroll to the current line in the annotation view

If there is a selection instead of a single line, use the first line in the selection range.