diff options
| author | Gerd Moellmann | 2001-02-15 12:30:16 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-02-15 12:30:16 +0000 |
| commit | 8399f8a0cd00d4c2f99e20585bb6d2d70d7177af (patch) | |
| tree | caac818a183031424f539933e9015b077c71edc4 /src | |
| parent | 9a2a6f73529601126566ae0d5c77b309bb810cb9 (diff) | |
| download | emacs-8399f8a0cd00d4c2f99e20585bb6d2d70d7177af.tar.gz emacs-8399f8a0cd00d4c2f99e20585bb6d2d70d7177af.zip | |
(update_text_area): Undo change of 2001-01-12.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/dispnew.c | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index daaab3b63c5..295773aabaa 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2001-02-15 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * dispnew.c (update_text_area): Undo change of 2001-01-12. | ||
| 4 | |||
| 1 | 2001-02-14 Dave Love <fx@gnu.org> | 5 | 2001-02-14 Dave Love <fx@gnu.org> |
| 2 | 6 | ||
| 3 | * coding.c: Doc and message fixes. | 7 | * coding.c: Doc and message fixes. |
diff --git a/src/dispnew.c b/src/dispnew.c index be75ffe24b4..04532d486dd 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -4244,18 +4244,18 @@ update_text_area (w, vpos) | |||
| 4244 | int overlapping_glyphs_p = current_row->contains_overlapping_glyphs_p; | 4244 | int overlapping_glyphs_p = current_row->contains_overlapping_glyphs_p; |
| 4245 | int desired_stop_pos = desired_row->used[TEXT_AREA]; | 4245 | int desired_stop_pos = desired_row->used[TEXT_AREA]; |
| 4246 | 4246 | ||
| 4247 | #if 0 /* This shouldn't be necessary. Let's check it. */ | ||
| 4248 | /* If the desired row extends its face to the text area end, | 4247 | /* If the desired row extends its face to the text area end, |
| 4249 | make sure we write at least one glyph, so that the face | 4248 | make sure we write at least one glyph, so that the face |
| 4250 | extension actually takes place. */ | 4249 | extension actually takes place. */ |
| 4251 | if (MATRIX_ROW_EXTENDS_FACE_P (desired_row)) | 4250 | if (MATRIX_ROW_EXTENDS_FACE_P (desired_row)) |
| 4252 | --desired_stop_pos; | 4251 | --desired_stop_pos; |
| 4253 | #endif | ||
| 4254 | 4252 | ||
| 4255 | stop = min (current_row->used[TEXT_AREA], desired_stop_pos); | 4253 | stop = min (current_row->used[TEXT_AREA], desired_stop_pos); |
| 4256 | i = 0; | 4254 | i = 0; |
| 4257 | x = desired_row->x; | 4255 | x = desired_row->x; |
| 4258 | 4256 | ||
| 4257 | /* Loop over glyphs that current and desired row may have | ||
| 4258 | in common. */ | ||
| 4259 | while (i < stop) | 4259 | while (i < stop) |
| 4260 | { | 4260 | { |
| 4261 | int can_skip_p = 1; | 4261 | int can_skip_p = 1; |
| @@ -4362,13 +4362,11 @@ update_text_area (w, vpos) | |||
| 4362 | /* Maybe clear to end of line. */ | 4362 | /* Maybe clear to end of line. */ |
| 4363 | if (MATRIX_ROW_EXTENDS_FACE_P (desired_row)) | 4363 | if (MATRIX_ROW_EXTENDS_FACE_P (desired_row)) |
| 4364 | { | 4364 | { |
| 4365 | #if 0 | ||
| 4366 | /* If new row extends to the end of the text area, nothing | 4365 | /* If new row extends to the end of the text area, nothing |
| 4367 | has to be cleared, if and only if we did a write_glyphs | 4366 | has to be cleared, if and only if we did a write_glyphs |
| 4368 | above. This is made sure by setting desired_stop_pos | 4367 | above. This is made sure by setting desired_stop_pos |
| 4369 | appropriately above. */ | 4368 | appropriately above. */ |
| 4370 | xassert (i < desired_row->used[TEXT_AREA]); | 4369 | xassert (i < desired_row->used[TEXT_AREA]); |
| 4371 | #endif | ||
| 4372 | } | 4370 | } |
| 4373 | else if (MATRIX_ROW_EXTENDS_FACE_P (current_row)) | 4371 | else if (MATRIX_ROW_EXTENDS_FACE_P (current_row)) |
| 4374 | { | 4372 | { |