From d2c71140b2547e122b3670be76b57950c2799240 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Mon, 5 Aug 2019 19:01:23 -0400 Subject: Fix CUP coords in termSnapshot --- term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/term.c b/term.c index c268c77..df3c87f 100644 --- a/term.c +++ b/term.c @@ -461,7 +461,7 @@ int termSnapshot(int _fd) { "%c%c%u;%u%c", ESC, CSI, Insert, (insert ? SM : RM), ESC, CSI, scroll.top, scroll.bot, DECSTBM, - ESC, CSI, y, x, CUP + ESC, CSI, 1 + y, 1 + x, CUP ); if (n < 0) goto fail; -- cgit 1.4.1