Why is `editor.setSelections(newSels)` called in the **up** case but not the **down** case? 

I tested with this code and also with that line commented out and couldn't find any unexpected behavior in either case, so is this necessary?