[PATCH 6/6] riched20: Only invalidate the selection if it's not hidden.