diff options
author | dzwdz | 2022-08-26 12:19:13 +0200 |
---|---|---|
committer | dzwdz | 2022-08-26 12:19:13 +0200 |
commit | eba8e12e8f0d113056264f71b8cbcda730e93506 (patch) | |
tree | b9d5efa10cfa2d308a7df23a91cf3ea2199950be /src/user/app/vterm | |
parent | dc351c97829ef8d15219d90e32101768bd0481be (diff) |
shared: memmove
Diffstat (limited to 'src/user/app/vterm')
-rw-r--r-- | src/user/app/vterm/draw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/user/app/vterm/draw.c b/src/user/app/vterm/draw.c index 50c56ed..ee36a0f 100644 --- a/src/user/app/vterm/draw.c +++ b/src/user/app/vterm/draw.c @@ -7,9 +7,8 @@ struct framebuf fb; struct rect dirty; void scroll(void) { - // TODO memmove. this is UD size_t row_len = fb.pitch * font.h; - memcpy(fb.b, fb.b + row_len, fb.len - row_len); + memmove(fb.b, fb.b + row_len, fb.len - row_len); memset(fb.b + fb.len - row_len, 0, row_len); cursor.y--; |