marijnh/CodeMirror — pull request #1968 by xaka (2013-11-20 07:44:26+00:00)
Title: Do not scroll while applying indentation to selection

When i do selection and scroll down to select additional lines that out of view and then scroll back to the top and press Tab or Shift-Tab, a view is automatically scrolled to the bottom of selection against my will and i want to see what's going on right where i'm looking at now. I don't want my view jump here and there with no reason that is annoying.

I think overall logic behind **selectionChanged** variable makes more sense to situations when you select something and replace it with whatever you have in your buffer (copy/paste) otherwise (indentation changes) no cursor changes (blinking, position) are required as user is still working with selection.