aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2011-09-18 03:36:10 -0400
committerEli Zaretskii2011-09-18 03:36:10 -0400
commit7debb7d8530efe70f33f32e9fb1a638198938b0c (patch)
treea350c99946d48eca977b040e4e0fc54c71d6efe6
parenta1674f0b8f8a8fb16d01df3d1430bf3f43989323 (diff)
downloademacs-7debb7d8530efe70f33f32e9fb1a638198938b0c.tar.gz
emacs-7debb7d8530efe70f33f32e9fb1a638198938b0c.zip
src/xdisp.c: Revert inadvertently committed changes.
-rw-r--r--src/xdisp.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index b12fd6e591c..f889815fa1e 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -18703,6 +18703,11 @@ display_line (struct it *it)
18703 it->current_x = new_x; 18703 it->current_x = new_x;
18704 it->continuation_lines_width += new_x; 18704 it->continuation_lines_width += new_x;
18705 ++it->hpos; 18705 ++it->hpos;
18706 /* Record the maximum and minimum buffer
18707 positions seen so far in glyphs that will be
18708 displayed by this row. */
18709 if (it->bidi_p)
18710 RECORD_MAX_MIN_POS (it);
18706 if (i == nglyphs - 1) 18711 if (i == nglyphs - 1)
18707 { 18712 {
18708 /* If line-wrap is on, check if a previous 18713 /* If line-wrap is on, check if a previous
@@ -18717,11 +18722,6 @@ display_line (struct it *it)
18717 || IT_DISPLAYING_WHITESPACE (it))) 18722 || IT_DISPLAYING_WHITESPACE (it)))
18718 goto back_to_wrap; 18723 goto back_to_wrap;
18719 18724
18720 /* Record the maximum and minimum buffer
18721 positions seen so far in glyphs that will be
18722 displayed by this row. */
18723 if (it->bidi_p)
18724 RECORD_MAX_MIN_POS (it);
18725 set_iterator_to_next (it, 1); 18725 set_iterator_to_next (it, 1);
18726 if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) 18726 if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it))
18727 { 18727 {
@@ -18739,8 +18739,6 @@ display_line (struct it *it)
18739 } 18739 }
18740 } 18740 }
18741 } 18741 }
18742 else if (it->bidi_p)
18743 RECORD_MAX_MIN_POS (it);
18744 } 18742 }
18745 else if (CHAR_GLYPH_PADDING_P (*glyph) 18743 else if (CHAR_GLYPH_PADDING_P (*glyph)
18746 && !FRAME_WINDOW_P (it->f)) 18744 && !FRAME_WINDOW_P (it->f))
@@ -18871,10 +18869,6 @@ display_line (struct it *it)
18871 xassert (it->first_visible_x <= it->last_visible_x); 18869 xassert (it->first_visible_x <= it->last_visible_x);
18872 } 18870 }
18873 } 18871 }
18874 /* Even if this display element produced no glyphs at all,
18875 we want to record its position. */
18876 if (it->bidi_p && nglyphs == 0)
18877 RECORD_MAX_MIN_POS (it);
18878 18872
18879 row->ascent = max (row->ascent, it->max_ascent); 18873 row->ascent = max (row->ascent, it->max_ascent);
18880 row->height = max (row->height, it->max_ascent + it->max_descent); 18874 row->height = max (row->height, it->max_ascent + it->max_descent);