Limit range of repeat to avoid silly high numbers causing delays, from

Sergey Nizovtsev.
This commit is contained in:
nicm 2020-10-30 11:34:13 +00:00
parent 02197f20d0
commit 8e1d28453d

View File

@ -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;