# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1239186591 0 # Node ID 40a6ace09cb525576b3fd546807430f3f8a73841 # Parent 1bdb6d2477f5aef0cce73ce80504a244b56b0f55 (redraw_overlapping_rows): Fix detection of overlapping for topmost and bottommost rows. diff -r 1bdb6d2477f5 -r 40a6ace09cb5 src/dispnew.c --- 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;