]> git.eshelyaron.com Git - emacs.git/commitdiff
(direct_output_forward_char): Fix character/byte
authorGerd Moellmann <gerd@gnu.org>
Thu, 15 Nov 2001 10:31:05 +0000 (10:31 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 15 Nov 2001 10:31:05 +0000 (10:31 +0000)
position comparison.

src/ChangeLog
src/dispnew.c

index c490f9ca498469e633bb635e1c4a50515e68c9f9..d949b9d5678a633b3287951a2cf6d1204a074498 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-12  Jason Rumney  <jasonr@gnu.org>
 
        * w32fns.c (Fx_open_connection): Only execute once.
index 6a161c424ce536d40b58883331a9d79bb028e903..81752a66f0112ccfd23cce38c9cafc4cb8ee1a91 100644 (file)
@@ -3741,8 +3741,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);