Adjust cursor to last line when positioned below