Mercurial > emacs
changeset 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 | 1bdb6d2477f5 |
children | 4e95abb16393 |
files | src/dispnew.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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;