aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-03-14 13:26:45 +0000
committerGerd Moellmann2001-03-14 13:26:45 +0000
commit6500871233814363a1645a0bf411cd2fb0832580 (patch)
tree39ce83ff86fcdf2bb01177d73b17f773d9a60c23 /src
parent4458cf11f717f89a2cd0ef1bd92573b74dbcd016 (diff)
downloademacs-6500871233814363a1645a0bf411cd2fb0832580.tar.gz
emacs-6500871233814363a1645a0bf411cd2fb0832580.zip
(highlight_trailing_whitespace): On character terminals,
skip the padding blanks inserted in extend_face_to_end_of_line, before checking for trailing whitespace.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xdisp.c12
2 files changed, 13 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1a111f026a1..10059497ecc 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -3,6 +3,12 @@
3 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width 3 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
4 box just because the glyph row's full_width_p flag is set. 4 box just because the glyph row's full_width_p flag is set.
5 5
62001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
7
8 * xdisp.c (highlight_trailing_whitespace): On character terminals,
9 skip the padding blanks inserted in extend_face_to_end_of_line,
10 before checking for trailing whitespace.
11
62001-03-13 Gerd Moellmann <gerd@gnu.org> 122001-03-13 Gerd Moellmann <gerd@gnu.org>
7 13
8 * xmenu.c (popup_activate_callback, popup_deactivate_callback): 14 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
diff --git a/src/xdisp.c b/src/xdisp.c
index 314ba0ac06f..ef54efc1975 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -12252,11 +12252,13 @@ highlight_trailing_whitespace (f, row)
12252 struct glyph *start = row->glyphs[TEXT_AREA]; 12252 struct glyph *start = row->glyphs[TEXT_AREA];
12253 struct glyph *glyph = start + used - 1; 12253 struct glyph *glyph = start + used - 1;
12254 12254
12255 /* Skip over the space glyph inserted to display the 12255 /* Skip over space glyphs inserted to display the cursor at the
12256 cursor at the end of a line. */ 12256 end of a line, and for extending the face of the last glyph
12257 if (glyph->type == CHAR_GLYPH 12257 to the end of the line on terminals. */
12258 && glyph->u.ch == ' ' 12258 while (glyph >= start
12259 && INTEGERP (glyph->object)) 12259 && glyph->type == CHAR_GLYPH
12260 && glyph->u.ch == ' '
12261 && INTEGERP (glyph->object))
12260 --glyph; 12262 --glyph;
12261 12263
12262 /* If last glyph is a space or stretch, and it's trailing 12264 /* If last glyph is a space or stretch, and it's trailing