[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * info/nodes.c (adjust_nodestart): Increase the "
From: |
Gavin D. Smith |
Subject: |
branch master updated: * info/nodes.c (adjust_nodestart): Increase the "fudge size" the later in the file the node is supposed to start. |
Date: |
Sun, 11 Feb 2024 16:31:25 -0500 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 3dba3df03f * info/nodes.c (adjust_nodestart): Increase the "fudge
size" the later in the file the node is supposed to start.
3dba3df03f is described below
commit 3dba3df03fd4db8d4eb18e26d2f287c58e94384a
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Feb 11 21:31:18 2024 +0000
* info/nodes.c (adjust_nodestart): Increase the "fudge size"
the later in the file the node is supposed to start.
---
ChangeLog | 5 +++++
info/nodes.c | 10 ++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0da939d490..2e174d94e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-02-11 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * info/nodes.c (adjust_nodestart): Increase the "fudge size"
+ the later in the file the node is supposed to start.
+
2024-02-11 Gavin Smith <gavinsmith0123@gmail.com>
* NEWS: mention COLLATION_LANGUAGE
diff --git a/info/nodes.c b/info/nodes.c
index 3c832e57ea..eb1e459a1f 100644
--- a/info/nodes.c
+++ b/info/nodes.c
@@ -1118,8 +1118,14 @@ adjust_nodestart (FILE_BUFFER *fb, TAG *node)
/* Oh well, I guess we have to try to find it in a larger area. */
- s.start -= DEFAULT_INFO_FUDGE;
- s.end += DEFAULT_INFO_FUDGE;
+ long fudge = DEFAULT_INFO_FUDGE;
+ /* Increase the fudge size slightly the later in the file we get.
+ This way we are more likely to accommodate an counting error
+ that accumulates throughout the file. */
+ fudge += s.start >> 5;
+
+ s.start -= fudge;
+ s.end += fudge;
if (s.start < 0)
s.start = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * info/nodes.c (adjust_nodestart): Increase the "fudge size" the later in the file the node is supposed to start.,
Gavin D. Smith <=