diff options
author | June McEnroe <june@causal.agency> | 2019-08-06 13:25:52 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-08-06 13:25:52 -0400 |
commit | 6f7c95d30fd14b16633a8606083c730fc8606e0f (patch) | |
tree | 81d2e3b3d07b24c370cdaabbc5a3ef1553f5bb72 | |
parent | Fix RI state return (diff) | |
download | stream-6f7c95d30fd14b16633a8606083c730fc8606e0f.tar.gz stream-6f7c95d30fd14b16633a8606083c730fc8606e0f.zip |
Fix DECSTBM in termSnapshot
-rw-r--r-- | term.c | 2 |
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; |