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;
 
cb5670cb7fd55d418841099c8499827a4&follow=1'>Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe