Mercurial > hg > nnchat
changeset 318:4acfcca39105
Don't THERR() in initializeWindows(), just return FALSE.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 11 Jun 2011 06:34:06 +0300 |
parents | 0089d94201b6 |
children | b9127815c9aa |
files | nnchat.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/nnchat.c Sat Jun 11 06:32:11 2011 +0300 +++ b/nnchat.c Sat Jun 11 06:34:06 2011 +0300 @@ -1010,10 +1010,9 @@ statusWin = subwin(stdscr, 1, w, h - 4, 0); editWin = subwin(stdscr, 3, w, h - 3, 0); - if (mainWin == NULL || statusWin == NULL || editWin == NULL) { - THERR("Could not create curses chatWindows!\n"); + if (mainWin == NULL || statusWin == NULL || editWin == NULL) return FALSE; - } + scrollok(mainWin, 1); return TRUE;