From 6f7c95d30fd14b16633a8606083c730fc8606e0f Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 6 Aug 2019 13:25:52 -0400 Subject: Fix DECSTBM in termSnapshot --- term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'term.c') diff --git a/term.c b/term.c index 48fed10..dff09f4 100644 --- a/term.c +++ b/term.c @@ -500,7 +500,7 @@ int termSnapshot(int _fd) { "%c%c%u;%u%c", ESC, CSI, IRM, (insert ? SM : RM), ESC, CSI, DEC, DECTCEM, (cursor ? DECSET : DECRST) - DEC, - ESC, CSI, scroll.top, scroll.bot, DECSTBM, + ESC, CSI, 1 + scroll.top, 1 + scroll.bot, DECSTBM, ESC, CSI, 1 + y, 1 + x, CUP ); if (n < 0) goto fail; -- cgit 1.4.1