diff options
| author | Jimmy Aguilar Mena | 2019-09-21 19:57:17 +0200 |
|---|---|---|
| committer | Jimmy Aguilar Mena | 2019-10-14 14:18:41 +0200 |
| commit | 92445de0a41bd138cc5a81cd1038720e20896535 (patch) | |
| tree | e11cc1b1d0fee7c311d6e199e7574bdf9fb94946 /src | |
| parent | acc720988446dd047d9496f9fb958b703e29dc8d (diff) | |
| download | emacs-92445de0a41bd138cc5a81cd1038720e20896535.tar.gz emacs-92445de0a41bd138cc5a81cd1038720e20896535.zip | |
Optimization in extend_face
* src/xdisp.c (extend_face_to_end_of_line): Optimization to void
calls to face_at_pos.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 5f7799e5b63..d99bc4323df 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -434,7 +434,7 @@ static int | |||
| 434 | fill_column_indicator_column (struct it *it, int char_width) | 434 | fill_column_indicator_column (struct it *it, int char_width) |
| 435 | { | 435 | { |
| 436 | if (Vdisplay_fill_column_indicator | 436 | if (Vdisplay_fill_column_indicator |
| 437 | && it->w->pseudo_window_p == 0 | 437 | && !it->w->pseudo_window_p |
| 438 | && it->continuation_lines_width == 0 | 438 | && it->continuation_lines_width == 0 |
| 439 | && CHARACTERP (Vdisplay_fill_column_indicator_character)) | 439 | && CHARACTERP (Vdisplay_fill_column_indicator_character)) |
| 440 | { | 440 | { |
| @@ -21581,8 +21581,9 @@ extend_face_to_end_of_line (struct it *it) | |||
| 21581 | || WINDOW_RIGHT_MARGIN_WIDTH (it->w) > 0)) | 21581 | || WINDOW_RIGHT_MARGIN_WIDTH (it->w) > 0)) |
| 21582 | return; | 21582 | return; |
| 21583 | 21583 | ||
| 21584 | const int extend_face_id | 21584 | const int extend_face_id = (it->face_id == DEFAULT_FACE_ID) |
| 21585 | = face_at_pos (it, LFACE_EXTEND_INDEX); | 21585 | ? DEFAULT_FACE_ID |
| 21586 | : face_at_pos (it, LFACE_EXTEND_INDEX); | ||
| 21586 | 21587 | ||
| 21587 | /* Face extension extends the background and box of IT->extend_face_id | 21588 | /* Face extension extends the background and box of IT->extend_face_id |
| 21588 | to the end of the line. If the background equals the background | 21589 | to the end of the line. If the background equals the background |