mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 18:25:43 +02:00
core: fix crash on /reload weechat
The problem was introduced in commit eef3b57075
which was storing split commands inside keys themselves (for optimization).
This causes a problem when weechat.conf is reloaded, because all keys are
then deleted and created again, which removes the array of commands which
is currently used. And then it leads to a crash of WeeChat.
This commit reverts this behavior and the key commands are split when they
are executed.
This commit is contained in:
+46
-50
File diff suppressed because it is too large
Load Diff
@@ -59,7 +59,6 @@ struct t_gui_key
|
||||
char *area_name[2]; /* name of areas (for cursor/mouse) */
|
||||
char *area_key; /* key after area (after ":") */
|
||||
char *command; /* associated command */
|
||||
char **commands; /* command split on ';' */
|
||||
int score; /* score, for sorting keys */
|
||||
struct t_gui_key *prev_key; /* link to previous key */
|
||||
struct t_gui_key *next_key; /* link to next key */
|
||||
|
||||
Reference in New Issue
Block a user