texinfo-commits
[Top][All Lists]
Advanced

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

[7771] point_forward_char make sure we always advance


From: gavinsmith0123
Subject: [7771] point_forward_char make sure we always advance
Date: Thu, 11 May 2017 14:46:07 -0400 (EDT)

Revision: 7771
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7771
Author:   gavin
Date:     2017-05-11 14:46:07 -0400 (Thu, 11 May 2017)
Log Message:
-----------
point_forward_char make sure we always advance

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2017-05-11 18:33:12 UTC (rev 7770)
+++ trunk/ChangeLog     2017-05-11 18:46:07 UTC (rev 7771)
@@ -1,3 +1,11 @@
+2017-05-11  Gavin Smith  <address@hidden>
+
+       * info/session.c (point_forward_char): Make sure that we always 
+       advance the position of the point on the display.  The point 
+       could get stuck at the very start of a node if the 'nodeline' 
+       variable was set to 'pointers'.  Report from Benno Schulenberg 
+       on 2017-04-27.
+
 2017-05-03  Jason Hood  <address@hidden>
 
        Allow style variables to be described and set.

Modified: trunk/info/session.c
===================================================================
--- trunk/info/session.c        2017-05-11 18:33:12 UTC (rev 7770)
+++ trunk/info/session.c        2017-05-11 18:46:07 UTC (rev 7771)
@@ -1141,7 +1141,10 @@
   long point = win->point;
   int col;
 
-  col = window_point_to_column (win, point, 0);
+  /* Find column in the line map after the current one that advances the
+     point.  (This may not be the very next character if we are at a
+     double-width character that occupies multiple columns.) */
+  col = window_point_to_column (win, point, 0) + 1;
   for (; col < win->line_map.used && win->line_map.map[col] == point; col++)
     ;
 




reply via email to

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