texinfo-commits
[Top][All Lists]
Advanced

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

[5535] position cursor in indices correctly


From: Gavin D. Smith
Subject: [5535] position cursor in indices correctly
Date: Thu, 08 May 2014 22:13:33 +0000

Revision: 5535
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5535
Author:   gavin
Date:     2014-05-08 22:13:32 +0000 (Thu, 08 May 2014)
Log Message:
-----------
position cursor in indices correctly

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/info-utils.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-05-08 11:35:31 UTC (rev 5534)
+++ trunk/ChangeLog     2014-05-08 22:13:32 UTC (rev 5535)
@@ -1,5 +1,11 @@
 2014-05-08  Gavin Smith  <address@hidden>
 
+       * info-utils.c (scan_node_contents): Pass offset relative to start
+       of node contents of "*" starting reference to scan_reference_label.
+       Report by Benno Schulenberg 8th May, 2014. 
+
+2014-05-08  Gavin Smith  <address@hidden>
+
        * info/session.c (begin_multiple_window_info_session): Deal with
        references to desired nodes being invalid and display dir node
        as a back-up.

Modified: trunk/info/info-utils.c
===================================================================
--- trunk/info/info-utils.c     2014-05-08 11:35:31 UTC (rev 5534)
+++ trunk/info/info-utils.c     2014-05-08 22:13:32 UTC (rev 5535)
@@ -1406,7 +1406,9 @@
 
       /* Read and output reference label (up until colon). */
       entry = scan_reference_label
-        (label, label_len, start_of_reference, found_menu_entry);
+        (label, label_len,
+        (s.buffer + start_of_reference) - node->contents,
+        found_menu_entry);
 
       /* Get target of reference and update entry. */
       scan_reference_target (entry, found_menu_entry, in_index);




reply via email to

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