texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * info/search.c (find_file_section): stop as soon


From: Patrice Dumas
Subject: branch master updated: * info/search.c (find_file_section): stop as soon as the position reached the binding end.
Date: Mon, 07 Oct 2024 19:34:56 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 1c9c2b6347 * info/search.c (find_file_section): stop as soon as the 
position reached the binding end.
1c9c2b6347 is described below

commit 1c9c2b6347742a1446e97d23034cfef98d8f23a7
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Oct 8 01:09:32 2024 +0200

    * info/search.c (find_file_section): stop as soon as the position
    reached the binding end.
---
 ChangeLog     | 5 +++++
 info/search.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2a79dbc848..e868b38928 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-10-07  Patrice Dumas  <pertusus@free.fr>
+
+       * info/search.c (find_file_section): stop as soon as the position
+       reached the binding end.
+
 2024-10-07  Patrice Dumas  <pertusus@free.fr>
 
        * info/nodes.c (DEFAULT_INFO_TAG_TABLE_RANGE)
diff --git a/info/search.c b/info/search.c
index 2396fc1cb0..abe296cf4b 100644
--- a/info/search.c
+++ b/info/search.c
@@ -693,9 +693,9 @@ find_file_section (SEARCH_BINDING *binding, char *label)
         }
       else
         {
-          s.start = position - 1;
-          if (s.start <= s.end)
+          if (position <= s.end)
             break;
+          s.start = position - 1;
         }
     }
   return -1;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]