(direct_output_forward_char): Fix character/byte
authorGerd Moellmann <gerd@gnu.org>
Thu, 15 Nov 2001 10:30:09 +0000 (10:30 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 15 Nov 2001 10:30:09 +0000 (10:30 +0000)
position comparison.

src/ChangeLog
src/dispnew.c

index 36850c4..c834525 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-15  Gerd Moellmann  <gerd@gnu.org>
+
+       * dispnew.c (direct_output_forward_char): Fix character/byte
+       position comparison.
+
 2001-11-15  Miles Bader  <miles@gnu.org>
 
        * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
index f5dba1f..073fa2e 100644 (file)
@@ -3724,8 +3724,8 @@ direct_output_forward_char (n)
   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);