1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 16:45:42 +02:00

core: optimize load of keys (save score of keys to sort them faster)

This commit is contained in:
Sebastien Helleu
2012-04-14 18:31:08 +02:00
parent d279a66df8
commit 9335b07ff7
2 changed files with 59 additions and 52 deletions
+58 -52
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -59,6 +59,7 @@ 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 (may be NULL) */
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 */
};