Fix for selection reset on Format Selection

The selection is now preserved when you do a Format Selection, but not
when you do a Format Document