]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
In term_init(), copy stuff out of the conf _before_ calling
authorSimon Tatham <anakin@pobox.com>
Tue, 13 Sep 2011 10:27:00 +0000 (10:27 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 13 Sep 2011 10:27:00 +0000 (10:27 +0000)
power_on(), since the latter calls term_schedule_cblink which expects
term->blink_cur to have been initialised.

[originally from svn r9278]

terminal.c

index 7aa0b6529f1ded0ad013332d4aa818d0efb347c6..08ce42e67b92fc0ec3865abd6e082b114679086e 100644 (file)
@@ -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;
 }