1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Initialise term->curr_truecolour at startup.

Somehow I managed to miss _that_ really obvious bug in the true-
colour patch.
This commit is contained in:
Simon Tatham 2017-10-01 20:59:00 +01:00
parent a4cbd3dfdb
commit 16214ea0f5

View File

@ -1296,6 +1296,7 @@ static void power_on(Terminal *term, int clear)
term->big_cursor = 0;
term->default_attr = term->save_attr =
term->alt_save_attr = term->curr_attr = ATTR_DEFAULT;
term->curr_truecolour.fg = term->curr_truecolour.bg = optionalrgb_none;
term->term_editing = term->term_echoing = FALSE;
term->app_cursor_keys = conf_get_int(term->conf, CONF_app_cursor);
term->app_keypad_keys = conf_get_int(term->conf, CONF_app_keypad);