aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-05 17:04:09 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-05 17:04:09 +0000
commitb69282545c3a4ae4a168af062348f838774c5856 (patch)
treeecf3b342d2e97b02e5163a51a00065f764837cbd
parentcsi: SGR mouse tracking *is* implemented (diff)
osc: fix param calculation with more than one digit
-rw-r--r--osc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/osc.c b/osc.c
index d8bcde24..559d5271 100644
--- a/osc.c
+++ b/osc.c
@@ -27,6 +27,7 @@ osc_dispatch(struct terminal *term)
return false;
}
+ param *= 10;
param += c - '0';
}
LOG_DBG("OCS: %.*s (param = %d)",