From d83d4af153de5a3cfacc4ce014183fd36e0cd920 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Wed, 2 Jan 2002 01:55:54 -0500 Subject: snapshot of project "lynx", label v2-8-5dev_6 --- src/LYGetFile.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/LYGetFile.c') diff --git a/src/LYGetFile.c b/src/LYGetFile.c index 1c4097ea..ce0bb79b 100644 --- a/src/LYGetFile.c +++ b/src/LYGetFile.c @@ -1250,6 +1250,8 @@ PUBLIC int follow_link_number ARGS4( */ if (*num > 0) { int info; + char *text; + /* * Get the lname, and hightext, directly from www * structures and add it to the cur link so that @@ -1260,12 +1262,14 @@ PUBLIC int follow_link_number ARGS4( * in the current document, whether it is displayed * on the screen or not! */ - if ((info = HTGetLinkInfo(*num, - want_go, - &new_top, - &new_link, - &links[cur].hightext, - &links[cur].lname)) == WWW_INTERN_LINK_TYPE) { + info = HTGetLinkInfo(*num, + want_go, + &new_top, + &new_link, + &text, + &links[cur].lname); + LYSetHilite(cur, text); + if (info == WWW_INTERN_LINK_TYPE) { links[cur].type = WWW_INTERN_LINK_TYPE; return(DO_LINK_STUFF); } else if (info == LINK_LINE_FOUND) { -- cgit 1.4.1-2-gfad0