summary refs log tree commit diff
diff options
context:
space:
mode:
-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++;
 }