Fix bug where we looked at the wrong line when looking for a wrapped string and wrapping around the right edge going forward