diff options
author | nicm <nicm> | 2020-10-30 11:34:13 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-10-30 11:34:13 +0000 |
commit | 8e1d28453d23d6283abe1bb709a4fe06139d2750 (patch) | |
tree | e5790c8114bf262a57ac8ed97b7e2e4eadded764 | |
parent | 02197f20d0809a5c248a32ef0ca3a45c7e3566bd (diff) | |
download | rtmux-8e1d28453d23d6283abe1bb709a4fe06139d2750.tar.gz rtmux-8e1d28453d23d6283abe1bb709a4fe06139d2750.tar.bz2 rtmux-8e1d28453d23d6283abe1bb709a4fe06139d2750.zip |
Limit range of repeat to avoid silly high numbers causing delays, from
Sergey Nizovtsev.
-rw-r--r-- | input.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1545,6 +1545,10 @@ input_csi_dispatch(struct input_ctx *ictx) if (n == -1) break; + m = screen_size_x(s) - s->cx; + if (n > m) + n = m; + if (ictx->last == -1) break; ictx->ch = ictx->last; |