Commit 9b784ab8 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(direct_output_forward_char): Fix character/byte

position comparison.
parent 89512fcd
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.
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment