mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 02:51:31 -08:00
* dispnew.c (preserve_other_columns): Remember to multiply the
size argument to bcopy by the size of a glyph.
This commit is contained in:
parent
8a9311d707
commit
aec9f5f6dc
1 changed files with 4 additions and 2 deletions
|
|
@ -747,7 +747,8 @@ preserve_other_columns (w)
|
|||
int len;
|
||||
|
||||
bcopy (current_frame->glyphs[vpos],
|
||||
desired_frame->glyphs[vpos], start);
|
||||
desired_frame->glyphs[vpos],
|
||||
start * sizeof (current_frame->glyphs[vpos]));
|
||||
len = min (start, current_frame->used[vpos]);
|
||||
if (desired_frame->used[vpos] < len)
|
||||
desired_frame->used[vpos] = len;
|
||||
|
|
@ -760,7 +761,8 @@ preserve_other_columns (w)
|
|||
= SPACEGLYPH;
|
||||
bcopy (current_frame->glyphs[vpos] + end,
|
||||
desired_frame->glyphs[vpos] + end,
|
||||
current_frame->used[vpos] - end);
|
||||
((current_frame->used[vpos] - end)
|
||||
* sizeof (current_frame->glyphs[vpos])));
|
||||
desired_frame->used[vpos] = current_frame->used[vpos];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue