diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-08-21 07:41:28 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-08-21 07:41:28 +0200 |
commit | db0bdc2ac69c27728fa415dd452fc88bb9e92f0f (patch) | |
tree | c5ff585133bde66c7653b113bcce1d9abb0ea7fe /doc/ja | |
parent | 8c554d88c93a48bec48317b15d1da61fa20d6cbb (diff) | |
download | weechat-db0bdc2ac69c27728fa415dd452fc88bb9e92f0f.zip |
core: add flag "input_get_empty" in buffer
The default value is 0 (legacy behavior).
When it is set to 1, an empty input (just by pressing Return with nothing in
input) is sent to the input callback, which receives an empty string.
Diffstat (limited to 'doc/ja')
-rw-r--r-- | doc/ja/autogen/plugin_api/hdata.adoc | 1 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/doc/ja/autogen/plugin_api/hdata.adoc b/doc/ja/autogen/plugin_api/hdata.adoc index a0c88080d..565c381d1 100644 --- a/doc/ja/autogen/plugin_api/hdata.adoc +++ b/doc/ja/autogen/plugin_api/hdata.adoc @@ -534,6 +534,7 @@ _input_callback_ (pointer) + _input_callback_pointer_ (pointer) + _input_callback_data_ (pointer) + _input_get_unknown_commands_ (integer) + +_input_get_empty_ (integer) + _input_buffer_ (string) + _input_buffer_alloc_ (integer) + _input_buffer_size_ (integer) + diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index 0a8455dab..544934b82 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -11805,6 +11805,8 @@ int weechat_buffer_get_integer (struct t_gui_buffer *buffer, ** _input_: 入力可能な場合は 1、そうでない場合は 0 ** _input_get_unknown_commands_: 未定義のコマンドを入力コールバックに送信する場合は 1、そうでない場合は 0 +// TRANSLATION MISSING +** _input_get_empty_: 1 if empty input is sent to input callback, otherwise 0 ** _input_size_: 入力サイズ (バイト単位) ** _input_length_: 入力長 (文字数) ** _input_pos_: バッファ入力におけるカーソル位置 @@ -12101,6 +12103,10 @@ void weechat_buffer_set (struct t_gui_buffer *buffer, const char *property, (デフォルト)、未定義のコマンドを受け入れる場合は "1"、例えばユーザが "/unknowncmd" を入力した場合、バッファはこれを受け入れる (未定義のコマンドに対するエラーを出さない) +// TRANSLATION MISSING +| input_get_empty | "0" または "1" | + "0" to disable empty input on this buffer (default behavior), "1" to get empty input. + | localvar_set_xxx | 任意の文字列 | ローカル変数 _xxx_ の新しい値を設定 (存在しない変数の場合は変数を作成する) |