# HG changeset patch # User Gerd Moellmann # Date 1005820174 0 # Node ID 818a84568f8393c8bc4c4a3fa4206dedf4d913d9 # Parent 03f5934e063d6ba3c8d860fb78f66acabde303a9 (direct_output_forward_char): Fix character/byte position comparison. diff -r 03f5934e063d -r 818a84568f83 src/dispnew.c --- 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);