From d519713fd589515e58fceeb2cbcea054dee0a770 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Wed, 14 Dec 2022 00:55:57 +0100 Subject: [PATCH] Fix L control sequence --- term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/term.c b/term.c index 49b7f34..2ba08e3 100644 --- a/term.c +++ b/term.c @@ -560,7 +560,7 @@ static void control_sequence_parse(struct term_context *ctx, uint8_t c) { break; case 'L': { size_t old_scroll_top_margin = ctx->scroll_top_margin; - ctx->scroll_top_margin = y + 1; + ctx->scroll_top_margin = y; for (size_t i = 0; i < ctx->esc_values[0]; i++) { ctx->revscroll(ctx); }