diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-05-09 18:06:01 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-09 18:07:36 +0200 |
commit | 63714855d3cbedc49747b099533a5a259cbd74c2 (patch) | |
tree | 02b320fe54b0153fcabd0eb0e51dbfb0454d528c /src/gui/gui-buffer.h | |
parent | 30afb3debe18645fd8bf645a735e3c033478913b (diff) | |
download | weechat-63714855d3cbedc49747b099533a5a259cbd74c2.zip |
core: add an option for multiline input in a buffer (closes #984)
This allows the input callback function for a buffer to receive multiple
lines at once, instead of the message being split on newline before
being sent to the callback. It adds a new flag, input_multiline, to
control this. This flag defaults to 0 which is the current behavior.
Diffstat (limited to 'src/gui/gui-buffer.h')
-rw-r--r-- | src/gui/gui-buffer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/gui-buffer.h b/src/gui/gui-buffer.h index fb2ac43b6..bc7dfec7f 100644 --- a/src/gui/gui-buffer.h +++ b/src/gui/gui-buffer.h @@ -157,6 +157,8 @@ struct t_gui_buffer /* input_callback */ int input_get_empty; /* 1 if empty input is sent to */ /* input_callback */ + int input_multiline; /* 1 if multiple lines are sent as */ + /* one message to input_callback */ char *input_buffer; /* input buffer */ int input_buffer_alloc; /* input buffer: allocated size */ int input_buffer_size; /* buffer size in bytes */ |