Set selection in Move Line Up after operation is finished

Fixes #1343 by moving the `setSelection()` call outside of the operation. I'll file a bug in CodeMirror about the underlying issue, but this workaround seems reasonable and I don't think we need to hold it up waiting for a CodeMirror fix.