Disambiguate link target for select_line_matching