about summary refs log tree commit diff stats
path: root/src/LYGetFile.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2002-01-02 01:55:54 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2002-01-02 01:55:54 -0500
commitd83d4af153de5a3cfacc4ce014183fd36e0cd920 (patch)
tree9e662d0b0ea4548c781e16e0159c0146f9dd3105 /src/LYGetFile.c
parent90d33dc9d0323ee3faf8477fcbddb376a6fcdb9a (diff)
downloadlynx-snapshots-d83d4af153de5a3cfacc4ce014183fd36e0cd920.tar.gz
snapshot of project "lynx", label v2-8-5dev_6
Diffstat (limited to 'src/LYGetFile.c')
-rw-r--r--src/LYGetFile.c16
1 files changed, 10 insertions, 6 deletions
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) {