summary refs log tree commit diff
path: root/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'term.c')
-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;
ighlight'> 2019-02-08Add sh syntax to hiJune McEnroe 2019-02-08Use [] to quote special characters in regexJune McEnroe This looks much cleaner than having to double-escape backslash. 2019-02-08Improve ANSI output and base IRC on itJune McEnroe 2019-02-08Add hi -nJune McEnroe 2019-02-08Elaborate hi man pageJune McEnroe 2019-02-08Use set for parent in hiJune McEnroe 2019-02-08Switch back to semantic keyword grouping in hiJune McEnroe 2019-02-08Match only the basename in hiJune McEnroe 2019-02-07Add mdoc syntax to hiJune McEnroe 2019-02-07Support multi-line C macros in hiJune McEnroe 2019-02-07Detect .mk files as makeJune McEnroe 2019-02-07Add make syntax to hiJune McEnroe 2019-02-07Add IRC output to hiJune McEnroe 2019-02-07Improve C syntax accuracy and add Format classJune McEnroe 2019-02-07Factor out hi checkJune McEnroe Fix subexpression bounds check and compile pattends. 2019-02-07Add Escape class to hiJune McEnroe 2019-02-07Add Todo class and parent syntax constraintJune McEnroe