Repaint blocks as necessary to avoid leaving incorrect selection markings visible.