diff options
Diffstat (limited to 'src/user/app/vterm/draw.c')
-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--; |