summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--term.c2
1 files changed, 1 insertions, 1 deletions
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;