[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[6020] traverse multi-column characters correctly
From: |
Gavin D. Smith |
Subject: |
[6020] traverse multi-column characters correctly |
Date: |
Sat, 03 Jan 2015 18:30:42 +0000 |
Revision: 6020
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6020
Author: gavin
Date: 2015-01-03 18:30:41 +0000 (Sat, 03 Jan 2015)
Log Message:
-----------
traverse multi-column characters correctly
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/session.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2015-01-03 18:11:40 UTC (rev 6019)
+++ trunk/ChangeLog 2015-01-03 18:30:41 UTC (rev 6020)
@@ -1,5 +1,11 @@
2015-01-03 Gavin Smith <address@hidden>
+ * info/session.c (point_forward_char, point_backward_char):
+ Correctly traverse multi-column characters. (Bug was likely
+ introduced on 2014-10-09 with change to window_point_to_column.)
+
+2015-01-03 Gavin Smith <address@hidden>
+
* info/window.c (process_node_text, calculate_line_starts):
process_node_text inlined in calculate_line_starts.
Modified: trunk/info/session.c
===================================================================
--- trunk/info/session.c 2015-01-03 18:11:40 UTC (rev 6019)
+++ trunk/info/session.c 2015-01-03 18:30:41 UTC (rev 6020)
@@ -1080,7 +1080,10 @@
long point = win->point;
int col;
- col = window_point_to_column (win, point, &point) + 1;
+ col = window_point_to_column (win, point, 0);
+ for (; col < win->line_map.used && win->line_map.map[col] == point; col++)
+ ;
+
if (col < win->line_map.used)
win->point = win->line_map.map[col];
else
@@ -1094,7 +1097,7 @@
long point = win->point;
int col;
- col = window_point_to_column (win, point, &point);
+ col = window_point_to_column (win, point, 0);
for (; col >= 0 && win->line_map.map[col] == point; col--)
;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [6020] traverse multi-column characters correctly,
Gavin D. Smith <=