# HG changeset patch # User Mikael Berthe # Date 1159472218 -7200 # Node ID d9acb7f2a3d10d04d522326193e2e71753d4e960 # Parent 1bdf0f1b16c09ba88c343dd3fd560d8a4406cc2b Do not set Curses variable too early This patch fixes a freeze when scr_LogPrint() is called before ncurses are fully initialized, for example when the colors are wrong in the config file. Problem reported by Jeff~ in the mcabber MUC room. diff -r 1bdf0f1b16c0 -r d9acb7f2a3d1 mcabber/src/screen.c --- a/mcabber/src/screen.c Wed Sep 27 22:57:23 2006 +0200 +++ b/mcabber/src/screen.c Thu Sep 28 21:36:58 2006 +0200 @@ -305,7 +305,6 @@ intrflush(stdscr, FALSE); start_color(); use_default_colors(); - Curses = TRUE; ParseColors(); @@ -317,6 +316,7 @@ inputLine[0] = 0; ptr_inputline = inputLine; + Curses = TRUE; return; }