From c68a646c64ee25ac7ec8d31085501130295415f4 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 13 Sep 2011 10:27:00 +0000 Subject: [PATCH] In term_init(), copy stuff out of the conf _before_ calling power_on(), since the latter calls term_schedule_cblink which expects term->blink_cur to have been initialised. [originally from svn r9278] --- terminal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminal.c b/terminal.c index 7aa0b652..08ce42e6 100644 --- a/terminal.c +++ b/terminal.c @@ -1538,6 +1538,8 @@ Terminal *term_init(Conf *myconf, struct unicode_data *ucsdata, term->selstate = NO_SELECTION; term->curstype = 0; + term_copy_stuff_from_conf(term); + term->screen = term->alt_screen = term->scrollback = NULL; term->tempsblines = 0; term->alt_sblines = 0; @@ -1576,8 +1578,6 @@ Terminal *term_init(Conf *myconf, struct unicode_data *ucsdata, term->basic_erase_char.cc_next = 0; term->erase_char = term->basic_erase_char; - term_copy_stuff_from_conf(term); - return term; } -- 2.45.2