diff options
Diffstat (limited to 'src/gui/curses/gui-curses-color.c')
-rw-r--r-- | src/gui/curses/gui-curses-color.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-color.c b/src/gui/curses/gui-curses-color.c index 5afc5d76b..cc08c02ac 100644 --- a/src/gui/curses/gui-curses-color.c +++ b/src/gui/curses/gui-curses-color.c @@ -448,6 +448,7 @@ gui_color_init () } gui_color_init_pairs (); gui_color_init_weechat (); + gui_color_palette_build_aliases (); } /* @@ -562,6 +563,12 @@ gui_color_palette_build_aliases () { int i; + if (!gui_color_hash_palette_alias || !gui_color_list_with_alias + || !gui_color_hash_palette_color) + { + gui_color_palette_alloc (); + } + hashtable_remove_all (gui_color_hash_palette_alias); weelist_remove_all (gui_color_list_with_alias); for (i = 0; i < GUI_CURSES_NUM_WEECHAT_COLORS; i++) |