summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2014-04-17 12:43:38 +0000
committernicm <nicm>2014-04-17 12:43:38 +0000
commitada75af199405c546588faacf8806e957c163621 (patch)
tree592a822be5b8f7267dc7ef07d459af50c2598a31 /tmux.h
parentbce952777a491c5099693e2c256a14e51aecfaa6 (diff)
Don't limit the DCS buffer to 256 bytes, expand it as needed. Requested
by Suraj Kurapati.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 491027fe..6abc41d3 100644
--- a/tmux.h
+++ b/tmux.h
@@ -818,8 +818,11 @@ struct input_ctx {
u_char param_buf[64];
size_t param_len;
- u_char input_buf[256];
+#define INPUT_BUF_START 32
+#define INPUT_BUF_LIMIT 1048576
+ u_char* input_buf;
size_t input_len;
+ size_t input_space;
int param_list[24]; /* -1 not present */
u_int param_list_len;