Improve multiline selection behavior