1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

trigger: fix variables sent to focus callback (closes #1858)

This fixes a regression introduced in WeeChat 3.7 by commit
0f67f55098.
This commit is contained in:
Sébastien Helleu
2022-12-10 22:30:24 +01:00
parent 18c9ade580
commit 1bfc8b9cf8
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -37,6 +37,7 @@ Bug fixes::
* api: fix function string_cut when there are non printable chars in suffix
* api: do not expect any return value in callbacks "callback_change" and "callback_delete" of function config_new_option (scripting API)
* irc: escape backslashes in raw buffer (issue #1838)
* trigger: fix variables sent to focus callback (issue #1858)
Tests::
+2
View File
@@ -1385,6 +1385,8 @@ trigger_callback_focus_cb (const void *pointer, void *data,
TRIGGER_CALLBACK_CB_NEW_POINTERS;
ctx.extra_vars = weechat_hashtable_dup (info);
/* add data in hashtables used for conditions/replace/command */
trigger_callback_set_common_vars (trigger, info);
ptr_value = weechat_hashtable_get (info, "_window");