1
0
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:
Sebastien Helleu
2014-03-27 07:53:01 +01:00
parent d129b39b86
commit 6a5f0fbc07
2 changed files with 46 additions and 51 deletions
+46 -50
View File
File diff suppressed because it is too large Load Diff
-1
View File
@@ -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 */