diff options
| author | Gerd Moellmann | 2001-11-15 10:30:09 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-11-15 10:30:09 +0000 |
| commit | 9b784ab8cf9f536959a6a41f37f3c35ec71a55d1 (patch) | |
| tree | 1c43ab4dd55df9716c4ef771f811bceedb2c5e0e /src | |
| parent | 89512fcd1474f4b5185f8c4d795eb0ac121e20ef (diff) | |
| download | emacs-9b784ab8cf9f536959a6a41f37f3c35ec71a55d1.tar.gz emacs-9b784ab8cf9f536959a6a41f37f3c35ec71a55d1.zip | |
(direct_output_forward_char): Fix character/byte
position comparison.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/dispnew.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 36850c4dbfd..c834525b5bf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2001-11-15 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * dispnew.c (direct_output_forward_char): Fix character/byte | ||
| 4 | position comparison. | ||
| 5 | |||
| 1 | 2001-11-15 Miles Bader <miles@gnu.org> | 6 | 2001-11-15 Miles Bader <miles@gnu.org> |
| 2 | 7 | ||
| 3 | * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters. | 8 | * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters. |
diff --git a/src/dispnew.c b/src/dispnew.c index f5dba1fd540..073fa2e53de 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -3724,8 +3724,8 @@ direct_output_forward_char (n) | |||
| 3724 | row = MATRIX_ROW (w->current_matrix, w->cursor.vpos); | 3724 | row = MATRIX_ROW (w->current_matrix, w->cursor.vpos); |
| 3725 | 3725 | ||
| 3726 | /* Give up if PT is outside of the last known cursor row. */ | 3726 | /* Give up if PT is outside of the last known cursor row. */ |
| 3727 | if (PT <= MATRIX_ROW_START_BYTEPOS (row) | 3727 | if (PT <= MATRIX_ROW_START_CHARPOS (row) |
| 3728 | || PT >= MATRIX_ROW_END_BYTEPOS (row)) | 3728 | || PT >= MATRIX_ROW_END_CHARPOS (row)) |
| 3729 | return 0; | 3729 | return 0; |
| 3730 | 3730 | ||
| 3731 | set_cursor_from_row (w, row, w->current_matrix, 0, 0, 0, 0); | 3731 | set_cursor_from_row (w, row, w->current_matrix, 0, 0, 0, 0); |