diff options
author | Jim Blandy <jimb@redhat.com> | 1993-05-20 23:30:21 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1993-05-20 23:30:21 +0000 |
commit | e5d21b058af67bb733f411a45225bc1d068bbce6 (patch) | |
tree | b6c830b9a1eff64db45ebd86f6fe7fe1c033067b /src/dispnew.c | |
parent | b9e5cafdd9e9d0ccce42efa3e6654411d8248fd8 (diff) | |
download | emacs-e5d21b058af67bb733f411a45225bc1d068bbce6.tar.gz |
* dispnew.c (preserve_other_columns): Remember to multiply the
size argument to bcopy by the size of a glyph.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r-- | src/dispnew.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 30e1706a720..fe132f1a0da 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -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]; } } |