toCursor was too greedy - now only grabs to line start