multiline selection fixes