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

Sergey Nizovtsev.
pull/2448/head
nicm 2020-10-30 11:34:13 +00:00
parent 02197f20d0
commit 8e1d28453d
1 changed files with 4 additions and 0 deletions

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;