Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
41124e06
Commit
41124e06
authored
Oct 07, 2005
by
YAMAMOTO Mitsuharu
Browse files
(redraw_overlapping_rows): Call rif->fix_overlapping_area with new
OVERLAPS arg as redrawn part.
parent
10a07952
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
17 deletions
+27
-17
src/dispnew.c
src/dispnew.c
+27
-17
No files found.
src/dispnew.c
View file @
41124e06
...
...
@@ -4034,25 +4034,35 @@ redraw_overlapping_rows (w, yb)
bottom_y = MATRIX_ROW_BOTTOM_Y (row);
if (row->overlapping_p && i > 0 && bottom_y < yb)
{
int overlaps = 0;
if (MATRIX_ROW_OVERLAPS_PRED_P (row)
&& !MATRIX_ROW (w->current_matrix, i - 1)->overlapped_p)
overlaps |= OVERLAPS_PRED;
if (MATRIX_ROW_OVERLAPS_SUCC_P (row)
&& !MATRIX_ROW (w->current_matrix, i + 1)->overlapped_p)
overlaps |= OVERLAPS_SUCC;
if (overlaps)
{
if (row->used[LEFT_MARGIN_AREA])
rif->fix_overlapping_area (w, row, LEFT_MARGIN_AREA);
rif->fix_overlapping_area (w, row, LEFT_MARGIN_AREA
, overlaps
);
if (row->used[TEXT_AREA])
rif->fix_overlapping_area (w, row, TEXT_AREA);
rif->fix_overlapping_area (w, row, TEXT_AREA
, overlaps
);
if (row->used[RIGHT_MARGIN_AREA])
rif->fix_overlapping_area (w, row, RIGHT_MARGIN_AREA);
rif->fix_overlapping_area (w, row, RIGHT_MARGIN_AREA
, overlaps
);
/* Record in neighbour rows that ROW overwrites part of
their
display. */
if (row->phys_ascent > row->ascent && i > 0
)
/* Record in neighbour rows that ROW overwrites part of
their
display. */
if (overlaps & OVERLAPS_PRED
)
MATRIX_ROW (w->current_matrix, i - 1)->overlapped_p = 1;
if ((row->phys_height - row->phys_ascent
> row->height - row->ascent)
&& bottom_y < yb)
if (overlaps & OVERLAPS_SUCC)
MATRIX_ROW (w->current_matrix, i + 1)->overlapped_p = 1;
}
}
if (bottom_y >= yb)
break;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment