summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-08-05 19:01:23 -0400
committerJune McEnroe <june@causal.agency>2019-08-05 19:01:23 -0400
commitd2c71140b2547e122b3670be76b57950c2799240 (patch)
treee8984b8fd0fa2a3f4a3571399c6b77083f46e4df
parentWrite warnings if stderr is not a TTY (diff)
downloadstream-d2c71140b2547e122b3670be76b57950c2799240.tar.gz
stream-d2c71140b2547e122b3670be76b57950c2799240.zip
Fix CUP coords in termSnapshot
-rw-r--r--term.c2
1 files changed, 1 insertions, 1 deletions
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;