1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 15:53:12 +02:00

relay/api: add field "input_prompt" in GET /api/buffers

This commit is contained in:
Sébastien Helleu
2024-05-11 09:11:01 +02:00
parent 827a056790
commit cdeac1b693
3 changed files with 9 additions and 1 deletions
+1
View File
@@ -385,6 +385,7 @@ relay_api_msg_buffer_to_json (struct t_gui_buffer *buffer,
lines = lines_free;
MSG_ADD_STR_PTR("type", ptr_string);
MSG_ADD_HDATA_STR_COLORS("title", "title");
MSG_ADD_HDATA_STR_COLORS("input_prompt", "input_prompt");
MSG_ADD_HDATA_STR("input", "input_buffer");
MSG_ADD_HDATA_VAR(Number, "input_position", integer, "input_buffer_pos");
MSG_ADD_HDATA_VAR(Bool, "input_multiline", integer, "input_multiline");
+3 -1
View File
@@ -126,7 +126,9 @@ relay_api_hook_signals (struct t_relay_client *client)
if (!RELAY_API_DATA(client, hook_signal_input))
{
RELAY_API_DATA(client, hook_signal_input) =
weechat_hook_signal ("input_text_changed;input_text_cursor_moved",
weechat_hook_signal ("input_prompt_changed;"
"input_text_changed;"
"input_text_cursor_moved",
&relay_api_protocol_signal_input_cb,
client, NULL);
}