Maintain error highlight state when exiting preview mode