Update text navigation when adding lines