summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-08-16 21:51:58 -0400
committerJune McEnroe <june@causal.agency>2019-08-16 21:51:58 -0400
commit3bb9099376e80cf18deba5ee35c93621113fa66d (patch)
treeac2244da6f08875a688dfa945625a710eb96faf8
parentFix scrollUp OOB if scroll.bot is 0 (diff)
downloadstream-3bb9099376e80cf18deba5ee35c93621113fa66d.tar.gz
stream-3bb9099376e80cf18deba5ee35c93621113fa66d.zip
Fix CSI param counting
-rw-r--r--term.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/term.c b/term.c
index 52cc859..342bc66 100644
--- a/term.c
+++ b/term.c
@@ -94,6 +94,7 @@ ACTION(csi) {
 }
 ACTION(csiSep) {
 	if (t->param.n == ParamCap) return;
+	if (!t->param.n) t->param.n++;
 	t->param.n++;
 	t->param.i++;
 }