about summary refs log tree commit diff stats
path: root/src/GridText.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1997-08-03 10:20:31 -0400
committerThomas E. Dickey <dickey@invisible-island.net>1997-08-03 10:20:31 -0400
commit3aee60ca50a415525b4719cc30cf66fcff069775 (patch)
treef4969a96985ef36c9b1b12bf8a439783f47ed840 /src/GridText.c
parentc4e90d703df03dd9ea1b52004728de003d6a2958 (diff)
downloadlynx-snapshots-3aee60ca50a415525b4719cc30cf66fcff069775.tar.gz
snapshot of project "lynx", label v2-7-1ac_0-45
Diffstat (limited to 'src/GridText.c')
-rw-r--r--src/GridText.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GridText.c b/src/GridText.c
index 433b86b2..493e66cc 100644
--- a/src/GridText.c
+++ b/src/GridText.c
@@ -2459,7 +2459,7 @@ PUBLIC void HText_endAnchor ARGS2(
      *  without needing to close any anchor with an HREF
      *  within which that link might be embedded. - FM
      */
-    if (number <= 0) {
+    if (number <= 0 || text->last_anchor->number == number) {
 	a = text->last_anchor;
     } else {
         for (a = text->first_anchor; a; a = a->next) {