Mercurial > emacs
comparison src/dispnew.c @ 8878:066fab036ab5
(preserve_other_columns): Fix arg to sizeof in bcopy call.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 18 Sep 1994 18:57:22 +0000 |
parents | f06ea671bacb |
children | 03597c3eb63b |
comparison
equal
deleted
inserted
replaced
8877:1503c999456b | 8878:066fab036ab5 |
---|---|
849 { | 849 { |
850 int len; | 850 int len; |
851 | 851 |
852 bcopy (current_frame->glyphs[vpos], | 852 bcopy (current_frame->glyphs[vpos], |
853 desired_frame->glyphs[vpos], | 853 desired_frame->glyphs[vpos], |
854 start * sizeof (current_frame->glyphs[vpos])); | 854 start * sizeof (current_frame->glyphs[vpos][0])); |
855 bcopy (current_frame->charstarts[vpos], | 855 bcopy (current_frame->charstarts[vpos], |
856 desired_frame->charstarts[vpos], | 856 desired_frame->charstarts[vpos], |
857 start * sizeof (current_frame->charstarts[vpos])); | 857 start * sizeof (current_frame->charstarts[vpos][0])); |
858 len = min (start, current_frame->used[vpos]); | 858 len = min (start, current_frame->used[vpos]); |
859 if (desired_frame->used[vpos] < len) | 859 if (desired_frame->used[vpos] < len) |
860 desired_frame->used[vpos] = len; | 860 desired_frame->used[vpos] = len; |
861 } | 861 } |
862 if (current_frame->used[vpos] > end | 862 if (current_frame->used[vpos] > end |
869 desired_frame->glyphs[vpos][used] = 0; | 869 desired_frame->glyphs[vpos][used] = 0; |
870 } | 870 } |
871 bcopy (current_frame->glyphs[vpos] + end, | 871 bcopy (current_frame->glyphs[vpos] + end, |
872 desired_frame->glyphs[vpos] + end, | 872 desired_frame->glyphs[vpos] + end, |
873 ((current_frame->used[vpos] - end) | 873 ((current_frame->used[vpos] - end) |
874 * sizeof (current_frame->glyphs[vpos]))); | 874 * sizeof (current_frame->glyphs[vpos][0]))); |
875 bcopy (current_frame->charstarts[vpos] + end, | 875 bcopy (current_frame->charstarts[vpos] + end, |
876 desired_frame->charstarts[vpos] + end, | 876 desired_frame->charstarts[vpos] + end, |
877 ((current_frame->used[vpos] - end) | 877 ((current_frame->used[vpos] - end) |
878 * sizeof (current_frame->charstarts[vpos]))); | 878 * sizeof (current_frame->charstarts[vpos][0]))); |
879 desired_frame->used[vpos] = current_frame->used[vpos]; | 879 desired_frame->used[vpos] = current_frame->used[vpos]; |
880 } | 880 } |
881 } | 881 } |
882 } | 882 } |
883 } | 883 } |