summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-08-06 13:25:52 -0400
committerJune McEnroe <june@causal.agency>2019-08-06 13:25:52 -0400
commit6f7c95d30fd14b16633a8606083c730fc8606e0f (patch)
tree81d2e3b3d07b24c370cdaabbc5a3ef1553f5bb72
parentFix RI state return (diff)
downloadstream-6f7c95d30fd14b16633a8606083c730fc8606e0f.tar.gz
stream-6f7c95d30fd14b16633a8606083c730fc8606e0f.zip
Fix DECSTBM in termSnapshot
-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;