changeset 41069:818a84568f83

(direct_output_forward_char): Fix character/byte position comparison.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 15 Nov 2001 10:29:34 +0000
parents 03f5934e063d
children ed4a05d7a938
files src/dispnew.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Thu Nov 15 08:07:50 2001 +0000
+++ b/src/dispnew.c	Thu Nov 15 10:29:34 2001 +0000
@@ -3724,8 +3724,8 @@
   row = MATRIX_ROW (w->current_matrix, w->cursor.vpos);
 
   /* Give up if PT is outside of the last known cursor row.  */
-  if (PT <= MATRIX_ROW_START_BYTEPOS (row)
-      || PT >= MATRIX_ROW_END_BYTEPOS (row))
+  if (PT <= MATRIX_ROW_START_CHARPOS (row)
+      || PT >= MATRIX_ROW_END_CHARPOS (row))
     return 0;
 
   set_cursor_from_row (w, row, w->current_matrix, 0, 0, 0, 0);