Fix selection bug in which selecting a range after selecting a line
wasn't deselecting the line.