Replace blocks honors selection.