Author: mesyeti <mesyeti@mesyeti.uk>
correct scrolling behaviour
source/buffer.c | 4 +++-
diff --git a/source/buffer.c b/source/buffer.c index ee2a2ab38e870b92cc6f456578810a48e9b49219..a7818ecf39b4027697768961bdefd39635666c29 100644 --- a/source/buffer.c +++ b/source/buffer.c @@ -169,5 +169,7 @@ memcpy(dest, src, rowSize); } - Buffer_ClearLine(buf, buf->height - 1, BufAttr_Default()); + for (int i = 0; i < by; ++ i) { + Buffer_ClearLine(buf, buf->height - 1 - i, BufAttr_Default()); + } }