Ensure go{Next,Previous}Line() has a caret context before setting the position