Sergey Nizovtsev
unread,Oct 30, 2020, 7:01:42 AM10/30/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tmux-...@googlegroups.com, Sergey Nizovtsev
Large values may hang tmux for a while, so limit number of CSI_REP
iterations the same way as in libvte (vteseq.cc#L6873).
diff --git input.c input.c
index c280c0d9..d43fc4c2 100644
--- input.c
+++ input.c
@@ -1542,8 +1542,11 @@ input_csi_dispatch(struct input_ctx *ictx)
break;
case INPUT_CSI_REP:
n = input_get(ictx, 0, 1, 1);
+ m = screen_size_x(s) - s->cx;
if (n == -1)
break;
+ if (n > m)
+ n = m;
if (ictx->last == -1)
break;
--
2.28.0