Created attachment 244318 [details] Animated GIF See the attached animated GIF. The expected behavior would be to keep the selected line in the middle of the content view.
<rdar://problem/19422419>
Agreed. However, after jumping to a line we don't remember that line as being selected, other than the sidebar. The user is free to scroll and click around more. This should just be about keeping the caret centered/visible. I think jumping to a line moves the text caret, if not, we can do that.
*** Bug 147479 has been marked as a duplicate of this bug. ***
I would expect CodeMirror to handle this by default. I just tested CodeMirror 5.5.0 and it has the same problem: http://jsbin.com/vodiyu.