changeset 103373:16b4872ef632

* xdisp.c (get_next_display_element): When handling wrap-prefix and line-prefix, treat \n as a control character (bug#3502).
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 10 Jun 2009 14:15:41 +0000
parents 1c54e0632a49
children cf3b8ef88ac7
files src/ChangeLog src/xdisp.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Jun 10 07:40:31 2009 +0000
+++ b/src/ChangeLog	Wed Jun 10 14:15:41 2009 +0000
@@ -1,3 +1,8 @@
+2009-06-10  Chong Yidong  <cyd@stupidchicken.com>
+
+	* xdisp.c (get_next_display_element): When handling wrap-prefix
+	and line-prefix, treat \n as a control character (bug#3502).
+
 2009-06-10  Kenichi Handa  <handa@m17n.org>
 
 	* font.c (font_parse_family_registry): Fix for one-char foundry.
--- a/src/xdisp.c	Wed Jun 10 07:40:31 2009 +0000
+++ b/src/xdisp.c	Wed Jun 10 14:15:41 2009 +0000
@@ -5733,7 +5733,8 @@
 		    ? (it->area != TEXT_AREA
 		       /* In mode line, treat \n, \t like other crl chars.  */
 		       || (it->c != '\t'
-			   && it->glyph_row && it->glyph_row->mode_line_p)
+			   && it->glyph_row
+			   && (it->glyph_row->mode_line_p || it->avoid_cursor_p))
 		       || (it->c != '\n' && it->c != '\t'))
 		    : (it->multibyte_p
 		       ? (!CHAR_PRINTABLE_P (it->c)