It kind of feels strange that the selection expands to the end of the line when adding a column to the query. Maybe it should only select a line when there wasn't a column in the query and don't select when there is one?

This ch: 9999 feels kind of hacky and could eventually fail, maybe we could just place the cursor and then call the select line command?