[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[6437] don't forget that anchor tags are for anchors
From: |
Gavin D. Smith |
Subject: |
[6437] don't forget that anchor tags are for anchors |
Date: |
Mon, 20 Jul 2015 16:53:58 +0000 |
Revision: 6437
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6437
Author: gavin
Date: 2015-07-20 16:53:56 +0000 (Mon, 20 Jul 2015)
Log Message:
-----------
don't forget that anchor tags are for anchors
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/nodes.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2015-07-18 08:59:52 UTC (rev 6436)
+++ trunk/ChangeLog 2015-07-20 16:53:56 UTC (rev 6437)
@@ -1,3 +1,9 @@
+2015-07-19 Gavin Smith <address@hidden>
+
+ * info/nodes.c (find_node_from_tag) <resetting tag table>: Don't
+ forget that tags for anchors refer to anchors. Report from
+ Eli Zaretskii.
+
2015-07-18 Eli Zaretskii <address@hidden>
* info/nodes.c (find_node_from_tag, info_node_of_tag): Use
Modified: trunk/info/nodes.c
===================================================================
--- trunk/info/nodes.c 2015-07-18 08:59:52 UTC (rev 6436)
+++ trunk/info/nodes.c 2015-07-20 16:53:56 UTC (rev 6437)
@@ -1204,13 +1204,15 @@
if (!FILENAME_CMP ((*t)->filename, fb->fullpath))
{
NODE *n = &(*t)->cache;
+ int is_anchor = n->nodelen == 0;
(*t)->nodestart_adjusted = -1;
if (n->flags & N_WasRewritten)
free (n->contents);
info_free_references (n->references);
free (n->next); free (n->prev); free (n->up);
memset (n, 0, sizeof (NODE));
- n->nodelen = -1;
+ if (!is_anchor)
+ n->nodelen = -1;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [6437] don't forget that anchor tags are for anchors,
Gavin D. Smith <=