commit 6b43e9d3e7443f1f2a3f6c5187710cfe563a54a1
parent 855e94d96f138b3712f1035a49d16f5f3506db01
Author: Frederic Cambus <fred@statdns.com>
Date: Sun, 21 Oct 2018 18:24:03 +0200
Add a check for negative rows for the cursor up sequence
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c
@@ -179,6 +179,9 @@ int ansilove_ansi(struct ansilove_ctx *ctx, struct ansilove_options *options)
row -= seq_line ? seq_line : 1;
+ if (row < 0)
+ row = 0;
+
loop += ansi_sequence_loop+2;
break;
}