[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[6406] fix condition for point in xref
From: |
Gavin D. Smith |
Subject: |
[6406] fix condition for point in xref |
Date: |
Sat, 11 Jul 2015 00:21:40 +0000 |
Revision: 6406
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6406
Author: gavin
Date: 2015-07-11 00:21:39 +0000 (Sat, 11 Jul 2015)
Log Message:
-----------
fix condition for point in xref
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/session.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2015-07-11 00:14:44 UTC (rev 6405)
+++ trunk/ChangeLog 2015-07-11 00:21:39 UTC (rev 6406)
@@ -6,6 +6,9 @@
* info/session.c (read_and_dispatch) <xref-rendition=On>: Call
display_update_one_window after each user command.
+ * info/session.c (info_menu_or_ref_item): Fix condition for
+ multiple cross-references in one line.
+
2015-07-10 Gavin Smith <address@hidden>
* info/variables.c (info_variables): New user variable
Modified: trunk/info/session.c
===================================================================
--- trunk/info/session.c 2015-07-11 00:14:44 UTC (rev 6405)
+++ trunk/info/session.c 2015-07-11 00:21:39 UTC (rev 6406)
@@ -2249,7 +2249,8 @@
/* If a reference contains the point, prefer it. Otherwise prefer a
reference after the cursor to one before it. */
- if (refs[which]->start >= window->point)
+ if (window->point >= refs[which]->start
+ && window->point < refs[which]->end)
break;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [6406] fix condition for point in xref,
Gavin D. Smith <=