Mercurial > emacs
diff src/dispnew.c @ 102882:40a6ace09cb5
(redraw_overlapping_rows): Fix detection of
overlapping for topmost and bottommost rows.
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
---|---|
date | Wed, 08 Apr 2009 10:29:51 +0000 |
parents | 1009d5607716 |
children | e68707cf48a5 |
line wrap: on
line diff
--- a/src/dispnew.c Wed Apr 08 04:02:31 2009 +0000 +++ b/src/dispnew.c Wed Apr 08 10:29:51 2009 +0000 @@ -4129,14 +4129,14 @@ bottom_y = MATRIX_ROW_BOTTOM_Y (row); - if (row->overlapping_p && i > 0 && bottom_y < yb) + if (row->overlapping_p) { int overlaps = 0; - if (MATRIX_ROW_OVERLAPS_PRED_P (row) + if (MATRIX_ROW_OVERLAPS_PRED_P (row) && i > 0 && !MATRIX_ROW (w->current_matrix, i - 1)->overlapped_p) overlaps |= OVERLAPS_PRED; - if (MATRIX_ROW_OVERLAPS_SUCC_P (row) + if (MATRIX_ROW_OVERLAPS_SUCC_P (row) && bottom_y < yb && !MATRIX_ROW (w->current_matrix, i + 1)->overlapped_p) overlaps |= OVERLAPS_SUCC;