getCurrentState: don't just remove selection markers. Restore selection.