The TrimTrailingSpacesInSelectedText profile option was not being respected when selecting text in the history buffer.