diff options
| author | Eli Zaretskii | 2017-12-21 20:28:55 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-12-21 20:28:55 +0200 |
| commit | ad2a47ce83c5c6fada96706a0e596ecc79d77696 (patch) | |
| tree | ca11ec5cda9d71e0852715df7a940f0b83f2353d /src | |
| parent | 88ddf53ef086ee2f2e0ea729bc4afbf34d88d82b (diff) | |
| download | emacs-ad2a47ce83c5c6fada96706a0e596ecc79d77696.tar.gz emacs-ad2a47ce83c5c6fada96706a0e596ecc79d77696.zip | |
; * src/xdisp.c (extend_face_to_end_of_line): Fix last change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index c3a46651da8..538c3e6b87e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -20274,13 +20274,14 @@ extend_face_to_end_of_line (struct it *it) | |||
| 20274 | it->area = LEFT_MARGIN_AREA; | 20274 | it->area = LEFT_MARGIN_AREA; |
| 20275 | it->face_id = default_face->id; | 20275 | it->face_id = default_face->id; |
| 20276 | while (it->glyph_row->used[LEFT_MARGIN_AREA] | 20276 | while (it->glyph_row->used[LEFT_MARGIN_AREA] |
| 20277 | < WINDOW_LEFT_MARGIN_WIDTH (it->w)) | 20277 | < WINDOW_LEFT_MARGIN_WIDTH (it->w) |
| 20278 | && g < it->glyph_row->glyphs[TEXT_AREA]) | ||
| 20278 | { | 20279 | { |
| 20279 | PRODUCE_GLYPHS (it); | 20280 | PRODUCE_GLYPHS (it); |
| 20280 | /* term.c:produce_glyphs advances it->current_x only for | 20281 | /* term.c:produce_glyphs advances it->current_x only for |
| 20281 | TEXT_AREA. */ | 20282 | TEXT_AREA. */ |
| 20282 | it->current_x += it->pixel_width; | 20283 | it->current_x += it->pixel_width; |
| 20283 | ++it->glyph_row->used[LEFT_MARGIN_AREA]; | 20284 | g++; |
| 20284 | } | 20285 | } |
| 20285 | 20286 | ||
| 20286 | it->current_x = saved_x; | 20287 | it->current_x = saved_x; |
| @@ -20314,11 +20315,12 @@ extend_face_to_end_of_line (struct it *it) | |||
| 20314 | it->area = RIGHT_MARGIN_AREA; | 20315 | it->area = RIGHT_MARGIN_AREA; |
| 20315 | it->face_id = default_face->id; | 20316 | it->face_id = default_face->id; |
| 20316 | while (it->glyph_row->used[RIGHT_MARGIN_AREA] | 20317 | while (it->glyph_row->used[RIGHT_MARGIN_AREA] |
| 20317 | < WINDOW_RIGHT_MARGIN_WIDTH (it->w)) | 20318 | < WINDOW_RIGHT_MARGIN_WIDTH (it->w) |
| 20319 | && g < it->glyph_row->glyphs[LAST_AREA]) | ||
| 20318 | { | 20320 | { |
| 20319 | PRODUCE_GLYPHS (it); | 20321 | PRODUCE_GLYPHS (it); |
| 20320 | it->current_x += it->pixel_width; | 20322 | it->current_x += it->pixel_width; |
| 20321 | ++it->glyph_row->used[RIGHT_MARGIN_AREA]; | 20323 | g++; |
| 20322 | } | 20324 | } |
| 20323 | 20325 | ||
| 20324 | it->area = TEXT_AREA; | 20326 | it->area = TEXT_AREA; |