message window needs to show at least 2 history lines
authorMischa POSLAWSKY <netris@shiar.org>
Sun, 4 Mar 2007 10:18:16 +0000 (11:18 +0100)
committerMischa POSLAWSKY <netris@shiar.org>
Sun, 4 Mar 2007 10:18:16 +0000 (11:18 +0100)
curses.c

index 2c4b87cd252415ab1428234355314462b0c20f71..5a90d2125fb189637d1b5a1b0b6a34fbf0f72e63 100644 (file)
--- a/curses.c
+++ b/curses.c
@@ -292,7 +292,7 @@ void InitFields(void)
        messageYPos = 24;
        messageWidth  = MIN(x - messageXPos - 2, MSG_WIDTH);
        messageHeight = MIN(y - messageYPos - 1, MSG_HEIGHT);
        messageYPos = 24;
        messageWidth  = MIN(x - messageXPos - 2, MSG_WIDTH);
        messageHeight = MIN(y - messageYPos - 1, MSG_HEIGHT);
-       if (messageHeight <= 0) {
+       if (messageHeight < 3) {
                messageWidth = MIN(x - statusXPos - 18, 27);
                messageHeight = y - 3;
                messageXPos = statusXPos + 16;
                messageWidth = MIN(x - statusXPos - 18, 27);
                messageHeight = y - 3;
                messageXPos = statusXPos + 16;