diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2009-04-08 10:30:51 +0000 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2009-04-08 10:30:51 +0000 |
commit | b4b2c2cafcf7d9d441be9d0930c69709a995420e (patch) | |
tree | bb500b7a4637521096a9cb3f1a56e74b6a340d47 /src/dispnew.c | |
parent | 157bca466be94c4d5ac762e9da9a56e0e44e6395 (diff) | |
download | emacs-b4b2c2cafcf7d9d441be9d0930c69709a995420e.tar.gz |
(redraw_overlapping_rows): Fix detection of
overlapping for topmost and bottommost rows.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r-- | src/dispnew.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index bbe0f9fc961..3fbb113dd9f 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -4129,14 +4129,14 @@ redraw_overlapping_rows (w, yb) 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; |