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 /doc/it | |
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 'doc/it')
-rw-r--r-- | doc/it/includes/autogen_api_hdata.it.adoc | 1 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/doc/it/includes/autogen_api_hdata.it.adoc b/doc/it/includes/autogen_api_hdata.it.adoc index e02a7f147..ac0d63b11 100644 --- a/doc/it/includes/autogen_api_hdata.it.adoc +++ b/doc/it/includes/autogen_api_hdata.it.adoc @@ -589,6 +589,7 @@ _input_callback_pointer_ (pointer) + _input_callback_data_ (pointer) + _input_get_unknown_commands_ (integer) + _input_get_empty_ (integer) + +_input_multiline_ (integer) + _input_buffer_ (string) + _input_buffer_alloc_ (integer) + _input_buffer_size_ (integer) + diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index 74fd1f77a..2e68892e0 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -13305,6 +13305,9 @@ Argomenti: alla callback di input, altrimenti 0 // TRANSLATION MISSING ** _input_get_empty_: 1 if empty input is sent to input callback, otherwise 0 +// TRANSLATION MISSING +** _input_multiline_: 1 if multiple lines are sent as one message to input + callback, otherwise 0 ** _input_size_: dimensione per l'input (in byte) ** _input_length_: lunghezza dell'input (numero di caratteri) ** _input_pos_: posizione del cursore nell'input del buffer @@ -13634,6 +13637,11 @@ Properties: | input_get_empty | "0" oppure "1" | "0" to disable empty input on this buffer (default behavior), "1" to get empty input. +// TRANSLATION MISSING +| input_multiline | "0" or "1" | + "0" to send each line separately to this buffer (default behavior), "1" to + send multiple lines as a single message. + | localvar_set_xxx | qualsiasi stringa | Imposta il nuovo valore per la variabile locale _xxx_ (la variabile verrà creata se non esiste). |